Skip to content

Instantly share code, notes, and snippets.

@jbinfo
Created June 26, 2016 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jbinfo/3bb292ea8e595a86c26708d53ca44750 to your computer and use it in GitHub Desktop.
Save jbinfo/3bb292ea8e595a86c26708d53ca44750 to your computer and use it in GitHub Desktop.
var secondes = Math.floor((Math.random() * 10) + 3);
var duration = secondes;
$('#activity-popup-dialog-body').find('.not-following').find('button.follow-button').each(function() {
var _this = this;
setTimeout(function() {
$(_this).trigger('click');
}, duration * 1000);
duration += secondes;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment