Skip to content

Instantly share code, notes, and snippets.

@martinnormark
Last active June 20, 2018 12:46
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 martinnormark/eb0d1d0b825d4c3f4010 to your computer and use it in GitHub Desktop.
Save martinnormark/eb0d1d0b825d4c3f4010 to your computer and use it in GitHub Desktop.
Twitter follow script
__cnt__ = 0;
jQuery('.stream .js-actionFavorite').each(function(i, ele) { ele = jQuery(ele); if (ele.css('display') != 'inline-block') { return; } setTimeout(function() { ele.click(); }, __cnt__++ * 500);
});
__cnt__ = 0;
jQuery('.GridTimeline-items .js-follow-btn').each(function(i, ele) { ele = jQuery(ele); if (ele.find("button:visible").text().indexOf("Following") !== -1) { return; } setTimeout(function() { ele.click(); }, __cnt__++ * 500);
});
// Also works to follow people in search results
__cnt__ = 0;
jQuery('.GridTimeline-items .js-follow-btn').each(function(i, ele) { ele = jQuery(ele); if (ele.find("button:visible").text().indexOf("Following") !== -1) { return; } setTimeout(function() { ele.click(); }, __cnt__++ * 500);
});
__cnt__ = 0;
jQuery('.stream-items .js-actionFavorite').each(function(i, ele) { ele = jQuery(ele); if (ele.css('display') != 'inline-block') { return; } setTimeout(function() { ele.click(); }, __cnt__++ * 500);
});
@martinnormark
Copy link
Author

Works to follow other account's followers or authors of tweets with a specific hashtag.

More here: https://medium.com/@nicolasleroux/how-to-get-thousands-of-followers-each-month-on-twitter-5c48da048c59

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