Last active
July 29, 2026 16:03
-
-
Save defrindr/88119728286ccc8af4f6e05e54448436 to your computer and use it in GitHub Desktop.
autoclick hackviser
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
| (() => { | |
| let timer = null; | |
| const clickButton = () => { | |
| const btn = [...document.querySelectorAll("button")] | |
| .find(b => b.textContent.includes("Mark Completed & Next")); | |
| if (!btn || btn.disabled || timer) return; | |
| console.log("Button found. Clicking in 2 seconds..."); | |
| timer = setTimeout(() => { | |
| timer = null; | |
| // Re-check the button still exists and is enabled | |
| if (document.body.contains(btn) && !btn.disabled) { | |
| console.log('Clicking "Mark Completed & Next"...'); | |
| btn.click(); | |
| } | |
| }, 2000); | |
| }; | |
| clickButton(); | |
| const observer = new MutationObserver(clickButton); | |
| observer.observe(document.body, { | |
| childList: true, | |
| subtree: true, | |
| }); | |
| console.log("Auto-click enabled (2s delay)."); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment