Skip to content

Instantly share code, notes, and snippets.

@antonydenyer
Created February 5, 2014 10:25
Show Gist options
  • Save antonydenyer/8820753 to your computer and use it in GitHub Desktop.
Save antonydenyer/8820753 to your computer and use it in GitHub Desktop.
var buttons = $(".js-follow-btn .follow-text :visible"),
interval = setInterval(function(){
var btn = $(buttons.splice(0, 1));
console.log("Clicking:", btn);
btn.click();
if (buttons.length === 0) {
clearInterval(interval);
}
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment