4 ms·
If you want to speed run it let max = 1000000; let btn = $('.main-btn'); function cl() { btn.click(); max--; if (max > 0) { setTimeout
by buryat 2y ago
If you want to speed run it
let max = 1000000;
let btn = $('.main-btn');
function cl() {
btn.click();
max--;
if (max > 0) {
setTimeout(cl, 1)
}
}
cl()
- buryat 2y agoI ended up stopping the execution using max=10 and then removing annoying elements using the web inspector and keep running. I really liked the subway surfers though
- Terr_ 2y agoA small improvement would be to stop based on the balance, rather than a number of clicks, to avoid going into ludicrous Yes JS Numbers Are All Floats territory. let max_amt = 2000000000*2; // Twice most expensive item let btn = $('.main-btn'); function cl() { btn.click(); let curr = $(".main-stat-num").innerText.replace(/\D/g, ''); if (curr < max_amt) { setTimeout(cl, 1) } } cl()