Skip to content

Instantly share code, notes, and snippets.

@zixan
Created August 12, 2015 01:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zixan/e884df52cfb466311785 to your computer and use it in GitHub Desktop.
Save zixan/e884df52cfb466311785 to your computer and use it in GitHub Desktop.
// 1) Go to https://twitter.com/following
// 2) Open console
// 3) Exec the following two lins:
var links = $x('//button[@class="user-actions-follow-button js-follow-btn follow-button btn small small-follow-btn"]')
for (var i=0; i< links.length; i++){ $(links[i]).click() }
@PaulSchnau
Copy link

Thanks! I needed this because of api limits. I made it automated:

setInterval(function(){
    window.scrollBy(0, 10000);
    var links = $x('//button[@class="user-actions-follow-button js-follow-btn follow-button btn small small-follow-btn"]')
    for (var i=0; i< links.length; i++){ $(links[i]).click() }
}, 100);

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