Skip to content

Instantly share code, notes, and snippets.

@amolwagh
Forked from thomasrstegelmann/targeted-auto-follow.js
Created November 26, 2016 04:28
Show Gist options
  • Save amolwagh/86c0c64bc0f3a861640b3b96ccb4209d to your computer and use it in GitHub Desktop.
Save amolwagh/86c0c64bc0f3a861640b3b96ccb4209d to your computer and use it in GitHub Desktop.
I modified Karan's script to follow only profiles that match a certain keywords to follow only relevant accounts. Please see https://medium.com/marketing-102/how-i-grew-from-300-to-5k-followers-in-just-3-weeks-2436528da845#.75mau0pj9 for details
a = setInterval(function () {
window.scrollTo(0,document.body.scrollHeight);
$(".ProfileCard-userFields").each( function() {
if($(this).find('.ProfileCard-bio').text().match(new RegExp("google|twitter|airbnb|entrepreneur|founder|tech|growthhacking|hacking|official|consultant|analytics|ecom|startup|ceo|ux|seo|ecommerce|growth"), "g") !== null )
{
$(this).parent().find('.not-following .user-actions-follow-button.js-follow-btn').click();
}
} );
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment