3 ms·
Or use requestAnimationFrame to run infinitely at ~60fps window.requestAnimationFrame(function clickButton() { document.querySelector(".main-btn").
by phelipetls 2y ago
Or use requestAnimationFrame to run infinitely at ~60fps
window.requestAnimationFrame(function clickButton() {
document.querySelector(".main-btn").click()
window.requestAnimationFrame(clickButton)
})
- 65 2y agoThis doesn't seem to logarithmically scale when you get the click percent increase upgrade, while the other code does.