Last active
August 29, 2015 14:07
-
-
Save retrohacker/2ddc5a74399810535798 to your computer and use it in GitHub Desktop.
Ello Follows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var numberOfUsers = 500 | |
function harvest() { | |
$("#search").scrollTop($("#search")[0].scrollHeight); | |
var bs = $('*[data-capture="noiseClicked"]') | |
var len = bs.length | |
console.log(len) | |
if ( len > numberOfUsers) { | |
follow() | |
} else { | |
setTimeout(harvest, Math.floor(Math.random() * 500) + 1); | |
} | |
} | |
var i = 0; // counter | |
var buttons = $('*[data-capture="noiseClicked"]') | |
function follow() { | |
$(buttons[i]).trigger("click") | |
console.log("follow") | |
i = i + 1 | |
if (i < buttons.length - 1) { | |
setTimeout(follow, 10000); | |
} | |
} | |
harvest(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Go to https://ello.co/search and paste this gist into console