Skip to content

Instantly share code, notes, and snippets.

@drkameleon
Created August 24, 2015 10:47
Show Gist options
  • Save drkameleon/694c651584b11806cd0f to your computer and use it in GitHub Desktop.
Save drkameleon/694c651584b11806cd0f to your computer and use it in GitHub Desktop.
Automatically Unfollow those who are not following back
// 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