Skip to content

Instantly share code, notes, and snippets.

@4lun
Last active March 1, 2024 07:31
Show Gist options
  • Save 4lun/898492d15722c9e10835 to your computer and use it in GitHub Desktop.
Save 4lun/898492d15722c9e10835 to your computer and use it in GitHub Desktop.
Unsubscribe from all subreddits
// Visit https://www.reddit.com/subreddits/ and run the following in console (browser dev tools)
// Wait until all the buttons have visibly toggled, refresh page to confirm.
$('.fancy-toggle-button .remove').each(function(i, elem) { setTimeout(function(){ $(elem).trigger('click'); }, i*500) });
@MatMercer
Copy link

var delay = 300;
$(".clear > ul > li > span > a:contains(unsubscribe)").each(
	(i, el) => {
		setTimeout(() => {
			el.click();
		}, delay * i);
	}
);

We came out with the same thing haha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment