Hacker News new | ask | show | jobs
by phelipetls 534 days ago
Or use requestAnimationFrame to run infinitely at ~60fps

    window.requestAnimationFrame(function clickButton() {
        document.querySelector(".main-btn").click()
        window.requestAnimationFrame(clickButton)
    })
1 comments

This doesn't seem to logarithmically scale when you get the click percent increase upgrade, while the other code does.