Last active
February 25, 2016 04:25
-
-
Save dyerrington/c70005ca2d55a8c32ced to your computer and use it in GitHub Desktop.
Something cool for the kids on the street...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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 */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here, maybe you'll find this interesting:
setInterval(function(){$('.bt-request-buffed').click();$('html, body').animate({ scrollTop: $('#footer').offset().top - 500 }, 'slow');},5000);