Skip to content

Instantly share code, notes, and snippets.

@dyerrington
Last active February 25, 2016 04:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dyerrington/c70005ca2d55a8c32ced to your computer and use it in GitHub Desktop.
Save dyerrington/c70005ca2d55a8c32ced to your computer and use it in GitHub Desktop.
Something cool for the kids on the street...
$('.bt-request-buffed').each(
function(index, value) { var el = $(this); var alpha = Math.floor((Math.random() * 8) + 3); setTimeout(function() { el.trigger('click'); }, (index * alpha) * 2500); });
/* Alternatively, you might try (index + alpha) * 1000 for a more natural sequence */
@KarimJedda
Copy link

Here, maybe you'll find this interesting:
setInterval(function(){$('.bt-request-buffed').click();$('html, body').animate({ scrollTop: $('#footer').offset().top - 500 }, 'slow');},5000);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment