Skip to content

Instantly share code, notes, and snippets.

View asteadman's full-sized avatar
🤯
hacking

Andrew Steadman asteadman

🤯
hacking
View GitHub Profile
@asteadman
asteadman / targeted-auto-follow.js
Last active July 13, 2016 18:46 — forked from thomasrstegelmann/targeted-auto-follow.js
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. USE AT YOUR OWN RISK.
a = setInterval(function () {
window.scrollTo(0,document.body.scrollHeight);
$(".ProfileCard-content").not(".parsed").each( function() {
$(this).addClass('parsed');
var bioGood = $(this).find('.ProfileCard-bio').text().match(new RegExp("REGEXPSTRING", "gi")) !== null;
var profileGood = $(this).find('img.ProfileCard-avatarImage').attr('src').indexOf("default_profile_images") === -1;
var bannerGood = $(this).parent().find('.ProfileCard-bg').css('background-image') !== 'none';