Comment Comment by phelipetls Or use requestAnimationFrame to run infinitely at ~60fps window.requestAnimationFrame(function clickButton() { document.querySelector(".main-btn").click() window.requestAnimationFrame(clickButton) }) parent phelipetls 1 year ago