Skip to content

Instantly share code, notes, and snippets.

@rodrigoea
Last active August 29, 2015 14:07
Show Gist options
  • Save rodrigoea/d7635b36be924f6b4048 to your computer and use it in GitHub Desktop.
Save rodrigoea/d7635b36be924f6b4048 to your computer and use it in GitHub Desktop.
Follow Back Twitter Script using jQuery

#Easily follow back your twitter followers using jQuery

Make sure that you are signed in twitter.

  • Go to Twitter followers page.

    • Go down the scrolling until all followers are loaded.
  • Open Developer Tools.

    • Google Chrome

      Mac: Command + Option + J

      Windows/Linux: Control + Shift + J

    • Firefox

      Mac: Command + Option + K

      Windows/Linux: Control + Shift + K

    • Internet Explorer

      Why don't you kill yourself?

  • Go to Console tab.

  • Paste the code below and press enter:

    $('.not-following').each(function(){$(this).find('.js-follow-btn').click();});

Done! Now you follow all the people who followed you.

##What does this code do?

Scans for each element that has the .not-following class which returns a button related to someone that you do not follow yet.

Performed scanning the elements, a search for the class js-follow-btn is made and executed a click .click() on the Follow button.

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