Skip to content

Instantly share code, notes, and snippets.

@defrindr
Last active July 29, 2026 16:03
Show Gist options
  • Select an option

  • Save defrindr/88119728286ccc8af4f6e05e54448436 to your computer and use it in GitHub Desktop.

Select an option

Save defrindr/88119728286ccc8af4f6e05e54448436 to your computer and use it in GitHub Desktop.
autoclick hackviser
(() => {
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