Hey,
great piece of content!!
I started playing a bit with the round 1 today and I updated the script a bit for myself, maybe someone would find it useful too.
It follows only 100 people at the time (so the script stops itself) and more importantly — it ignores accounts with default profile images.
var counter = 0;
a = setInterval(function () {
window.scrollTo(0,document.body.scrollHeight);
$(‘.ProfileCard-content’).each(function(){
card = $(this);
if (!card.hasClass(‘parsed’)) {
var image = card.find(‘.js-action-profile-avatar’);
var src = image.attr(‘src’);
var followDiv = card.find(‘.not-following’)
if (src.indexOf(“default_profile_images”) === -1 && followDiv.length !== 0) {
card.addClass(‘parsed’);
followDiv.find(‘.user-actions-follow-button.js-follow-btn’).click();
card.css({background: ‘#ccc’});
counter++;
}
}
if (counter === 100) {
clearInterval(a);
}
});}, 1000);