Skip to content

Instantly share code, notes, and snippets.

@lord-jashin
Forked from AymaneHrouch/autosub_reddit.js
Created June 15, 2022 07:17
Show Gist options
  • Save lord-jashin/a4233b1fef73627c660bc7645ce90e7f to your computer and use it in GitHub Desktop.
Save lord-jashin/a4233b1fef73627c660bc7645ce90e7f to your computer and use it in GitHub Desktop.
Auto subscribe to a lot of subreddits after you move to a new account.
/*
-Visit https://old.reddit.com/subreddits/ using your old account
-Copy link address of "multireddit of your subscriptions"
It will give you a link address like this: https://old.reddit.com/r/[subreddit1+subreddit2...+subredditN]
Please note that if you have a lot of subreddits the link won't work because there's a limit to the link's length, you can simply split it to two or three links
-Visit that link (or links) using your new account.
-Open the console by pressing F12 and then clicking the console tab
-Past the code bellow and press enter. You're welcome :)
*/
const sub = () => {
let btn = document.querySelector(".add.active");
if(btn) {
btn.click();
setTimeout('sub()', 500);
} else {
alert("You have subscribed to all the subreddits successfully");
return;
}
}
setTimeout('sub()', 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment