Created
August 24, 2017 14:19
-
-
Save madewulf/3f52ffc522bf6d52e5f1068d37b6e886 to your computer and use it in GitHub Desktop.
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
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