Skip to content

Instantly share code, notes, and snippets.

@AymaneHrouch
Last active February 10, 2026 04:03
Show Gist options
  • Select an option

  • Save AymaneHrouch/c29d7a00e7e68f39ed838610695c8d87 to your computer and use it in GitHub Desktop.

Select an option

Save AymaneHrouch/c29d7a00e7e68f39ed838610695c8d87 to your computer and use it in GitHub Desktop.

Revisions

  1. AymaneHrouch revised this gist Apr 29, 2020. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions autosub_reddit.js
    Original file line number Diff line number Diff line change
    @@ -7,12 +7,14 @@
    -Open the console by pressing F12 and then clicking the console tab
    -Past the code bellow and press enter. You're welcome :)
    */
    function sub(){
    i = 0;
    if (i<document.querySelectorAll(".add.active").length) {
    document.querySelectorAll(".add.active")[i].click()
    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;
    }
    i++;
    setTimeout('sub()', 500);
    }
    setTimeout('sub()', 500);
  2. AymaneHrouch revised this gist Apr 29, 2020. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions autosub_reddit.js
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    /*
    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 by making two or three links
    Log into 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 :)
    -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 :)
    */
    function sub(){
    i = 0;
  3. AymaneHrouch revised this gist Apr 29, 2020. 1 changed file with 9 additions and 3 deletions.
    12 changes: 9 additions & 3 deletions autosub_reddit.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,12 @@
    // Open the console by pressing F12 and then clicking the console tab
    // then past the code bellow and press enter. that's it :)

    /*
    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 by making two or three links
    Log into 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 :)
    */
    function sub(){
    i = 0;
    if (i<document.querySelectorAll(".add.active").length) {
  4. AymaneHrouch revised this gist Apr 3, 2019. No changes.
  5. AymaneHrouch created this gist Apr 3, 2019.
    12 changes: 12 additions & 0 deletions autosub_reddit.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    // Open the console by pressing F12 and then clicking the console tab
    // then past the code bellow and press enter. that's it :)

    function sub(){
    i = 0;
    if (i<document.querySelectorAll(".add.active").length) {
    document.querySelectorAll(".add.active")[i].click()
    }
    i++;
    setTimeout('sub()', 500);
    }
    setTimeout('sub()', 500);