Skip to content

Instantly share code, notes, and snippets.

@Lampe2020
Created April 25, 2025 13:34
Show Gist options
  • Save Lampe2020/d76ffbbd4b9eae5dc8d00dcf1d8d516c to your computer and use it in GitHub Desktop.
Save Lampe2020/d76ffbbd4b9eae5dc8d00dcf1d8d516c to your computer and use it in GitHub Desktop.
One Million Checkboxes Autoclicker

Autoclicker for One Million Checkboxes

I've created a bookmarklet autoclicker for One Million Checkboxes. Here is the source code:

(() => {
    alert('Autoclicker started. If prompted, disallow alerts in the next alert.');  // First alert box.
    alert('Disable me!');                                                           // Immediately a second alert box. Should give the user an option to disallow alerts in the running session of the site.
    setInterval(() => {
        const cb = document.querySelector('input[type=checkbox]:not(:checked):not([disabled])');    // Get the checkbox
        if (!cb) return;                                                                            // Skip this iteration if none was found
        cb.click();                                                                                 // Activate the checkbox
        cb.scrollIntoView();                                                                        // Scroll to it to continue loading new boxes automatically
        document.querySelector('input[type=number]').value = cb.id.substr(cb.id.indexOf('-') + 1);  // Display the index of the last-autoactivated box in the "Jump to" box
    }, 202);    // Set a 202ms interval to be as fast as possible without tripping the "Chill!" alert too often
})();           // Call the above code

and below it can be found in link form:

javascript:(()=>{alert('Autoclicker started. If prompted, disallow alerts in the next alert.');alert('Disable me!');setInterval(()=>{const cb=document.querySelector('input[type=checkbox]:not(:checked):not([disabled])');if(!cb)return;cb.click();cb.scrollIntoView();document.querySelector('input[type=number]').value=cb.id.substr(cb.id.indexOf('-')+1);},202);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment