Last active
September 29, 2024 12:34
-
-
Save zoyo23/570c4da5c63dc53af1082ab836109eed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var successCounter = 0; | |
var notSuccessCounter = 0; | |
var intervalInSeconds = 10 | |
// START PROCESS | |
var myTimer = window.setInterval(function () { | |
var dateTime = new Date(); | |
var btn = document.querySelectorAll("button[aria-label='Resgatar Bônus']")[0]; | |
if (btn) { | |
console.log(dateTime.toString('MM/dd/yyyy hh:mm tt') + ' - BONUS AVAILABLE.'); | |
btn.click(); | |
successCounter++; | |
} | |
else { | |
console.log(dateTime.toString('MM/dd/yyyy hh:mm tt') + ' - BONUS NOT AVAILABLE.'); | |
notSuccessCounter++; | |
} | |
console.log("Success: " + successCounter + " | Not Success: " + notSuccessCounter) | |
}, intervalInSeconds * 1000); | |
// STOP PROCESS | |
clearInterval(myTimer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment