Skip to content

Instantly share code, notes, and snippets.

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 esfand/65bf2874fdd819870b2814c3e31625c4 to your computer and use it in GitHub Desktop.
Save esfand/65bf2874fdd819870b2814c3e31625c4 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