Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

martinnormark commented Jul 21, 2015

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
You can’t perform that action at this time.