Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created August 15, 2010 19:45
Show Gist options
  • Save rwaldron/525882 to your computer and use it in GitHub Desktop.
Save rwaldron/525882 to your computer and use it in GitHub Desktop.
$LAB.script("http://code.jquery.com/jquery.js").wait(function () {
var tally = 0;
jQuery(function () {
function loopClickEmToRunEm() {
setTimeout(function () {
jQuery('#button_1').trigger('click');
}, 0);
setTimeout(function () {
jQuery('#button_2').trigger('click');
}, 3000);
setTimeout(function () {
jQuery('#button_3').trigger('click');
}, 6000);
setTimeout(function () {
console.log(tally++);
loopClickEmToRunEm();
}, 9000);
}
setTimeout(function () {
loopClickEmToRunEm();
}, 1000);
});
});
@rwaldron
Copy link
Author

hack :P

@rwaldron
Copy link
Author

Added var tally = 0; and console.log(tally++);

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