Moorer

[JavaScript] Unfollow all twitter users on current page.

Jan 15th, 2015
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //since twitter is ajax based, it will only unfollow however people you have loaded. Just refresh the page after each time you run it.
  2.  
  3. var count = document.getElementsByClassName('user-actions-follow-button js-follow-btn follow-button btn small small-follow-btn').length;
  4.  
  5. for (i = 0; i < count; i++) {
  6.    document.getElementsByClassName('user-actions-follow-button js-follow-btn follow-button btn small small-follow-btn')[i].click;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment