im new at js/node. I don’t figured out how to build this code properly. I’ve tried several ways.
The countdown that restarts by itself every 10s. It clicks only rarely, even if I decrease the ms.
The function must start after the chrome load in console as script, doesn’t required HTML
Here is the base code. THX!!!
setInterval(function () {
if (
document.querySelector("div.text-countdown-progressbar").textContent === "0"
) {
document.querySelector("a.button").click();
}
}, 1000);