Skip to content

Instantly share code, notes, and snippets.

@peterdemartini
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterdemartini/62e68b54d2307766fd77 to your computer and use it in GitHub Desktop.
Save peterdemartini/62e68b54d2307766fd77 to your computer and use it in GitHub Desktop.
Unfollow and Follow Twitter Users. Simply load a page of twitter followers and type this into the console.
$('.user-actions-follow-button').filter(function(){ return $(this).find('.follow-text:visible').size(); }).sort(function() {
return .5 - Math.random();
}).slice(0, 1000).click();
$('.user-actions-follow-button').filter(function(){ return $(this).find('.following-text:visible').size(); }).click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment