Skip to content

Instantly share code, notes, and snippets.

@jbinfo
Last active May 26, 2019 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbinfo/9a72f8b0c2faf141bc5edfb28e94ef47 to your computer and use it in GitHub Desktop.
Save jbinfo/9a72f8b0c2faf141bc5edfb28e94ef47 to your computer and use it in GitHub Desktop.
var buttons = $('div[role=dialog]').find('button:contains(Follow)').filter(function() {
return $(this).text().toLowerCase() === 'follow';
});
$.each(buttons, function(idx, itm) {
var secondes = Math.floor((Math.random() * 10) + 3);
setTimeout(function() {
$(itm).trigger('click');
}, duration = secondes * 1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment