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.

Revisions

  1. Lampe2020 created this gist Apr 25, 2025.
    19 changes: 19 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # Autoclicker for [One Million Checkboxes](https://onemillioncheckboxes.com)
    I've created a bookmarklet autoclicker for One Million Checkboxes. Here is the source code:
    ```JavaScript
    (() => {
    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
    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);})();
    ```