Skip to content

Instantly share code, notes, and snippets.

@hupili
Created September 9, 2014 05:21
Show Gist options
  • Save hupili/95aea677c543a920c327 to your computer and use it in GitHub Desktop.
Save hupili/95aea677c543a920c327 to your computer and use it in GitHub Desktop.
Follow all Twitter users on a page
$('.user-actions-follow-button').filter(':not(.cancel-hover-style)').click()
@hupili
Copy link
Author

hupili commented Jul 31, 2015

Go to one's "follower" page and follow all its followers by the following line in Chrome Console:

$('.user-actions-follow-button span [class="Icon Icon--follow"]').filter(':visible').click()

@Guic91
Copy link

Guic91 commented Aug 16, 2015

Nice !
Do you know how put a sleep between each click ?

@hupili
Copy link
Author

hupili commented Aug 29, 2015

@Guic91

$('.user-actions-follow-button span [class="Icon Icon--follow"]').filter(':visible') returns an array of items. Just loop through and add delay for each iteration.

Another way is to use setTimeout to invoke the click function and randomise the actions.

Copy link

ghost commented Nov 22, 2015

what if i want to ignore verified users?

@TechVows
Copy link

TechVows commented May 9, 2018

This simple script to easily Follow | Unfollow Twitter Followers | Unfollowers at once works like a charm.

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