Created
August 24, 2015 10:47
-
-
Save drkameleon/694c651584b11806cd0f to your computer and use it in GitHub Desktop.
Automatically Unfollow those who are not following back
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To be copy-pasted in the "Following" Twitter page | |
var profiles = $(".ProfileCard.js-actionable-user"); | |
for (var i=0; i<profiles.length; i++) { | |
var p = profiles[i]; | |
var status = $($(p).find(".FollowStatus")[0]).text().trim(); | |
var button = $(p).find(".user-actions-follow-button"); | |
if (status!="follows you") $(button).trigger('click'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment