I 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
A 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()
I needed the ocean at the end. It's a very good game. The variable reward and quick repeatability captured me... It showcases what we are exposed to in a condensed manner.
Comments (589) 300 threads
Earlier commentslet button = document.querySelector('.main-btn'); document.querySelector('.main-btn'); if (button) { let clickCount = 0; const interval = setInterval(() => { button.click(); clickCount++; if (clickCount >= 10000000) { clearInterval(interval); console.log('Clicked 1000 times!'); } }, 10); // Adjust the interval (10ms) if necessary } else { console.log('Button not found!'); }
Until then I'm returning to http://trimps.github.io/.
All comments shown.
Couldn't load more comments. Check your connection and try again.