Skip to content

Instantly share code, notes, and snippets.

@madewulf
Created August 24, 2017 14:19
Show Gist options
  • Save madewulf/3f52ffc522bf6d52e5f1068d37b6e886 to your computer and use it in GitHub Desktop.
Save madewulf/3f52ffc522bf6d52e5f1068d37b6e886 to your computer and use it in GitHub Desktop.
var rep = 20; // Number of repeat
var timeout = 370; // Delay between clicks
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function run() {
while (rep-- > 0) {$("#next_button").click(); await sleep(timeout);};
}
run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment