// ==UserScript== // @name Check All Unchecked Checkboxes // @namespace http://tampermonkey.net/ // @version 1.0 // @description Check all unchecked checkboxes on the page // @author MechanicalFish // @match https://onemillioncheckboxes.com/ * // @grant none // ==/UserScript== (function() { 'use strict'; function checkAllCheckboxes() { var checkboxes = document.querySelectorAll('input[type="checkbox"]'); checkboxes.f…
This ain't gonna work for 1,000,000 checkboxes. You could try using requestAnimationFrame or querying only non-checked checkboxes querySelectorAll('input[type="checkbox"]:not(:checked)') or not calling checkAllCheckboxes for all mutations. Edit: or just call querySelector('input[type="checkbox"]:not(:checked)') and do them one by one in some kinda while(true) loop
One Million Checkboxes
151–160 of 320 posts
Re: One Million Checkboxes
#152Earlier quoted context omitted.
Would be fun to read a writeup of how you implemented it.
it's a tiny flask server, a bitset stored in redis, updates broadcast (too frequently! but i don't want to change it now) via websockets, and react-window to only render the checkboxes that are in view. I'll do a writeup when i finish putting out fires!
Re: One Million Checkboxes
#153(developer here) this is....more popular than i expected. the server's gonna be having some problems for a while
You announced it on the FediVerse, where it has already been boosted almost 700 times as I write this 4 hours later, and it spread to Reddit within 2 hours of that, as you know because you replied to the Reddit post. There is definitely going to be an initial spike of activity, given those. (-:
Re: One Million Checkboxes
#154(developer here) this is....more popular than i expected. the server's gonna be having some problems for a while
(I wince mentioning this publicly; still have flashback trauma from when some HNer wrote a script to download as much data as possible from our Firebase and got a $1k bill overnight.)
Re: One Million Checkboxes
#155Re: One Million Checkboxes
#156// ==UserScript== // @name Check All Unchecked Checkboxes // @namespace http://tampermonkey.net/ // @version 1.0 // @description Check all unchecked checkboxes on the page // @author MechanicalFish // @match https://onemillioncheckboxes.com/ * // @grant none // ==/UserScript== (function() { 'use strict'; function checkAllCheckboxes() { var checkboxes = document.querySelectorAll('input[type="checkbox"]'); checkboxes.f…
This ain't gonna work for 1,000,000 checkboxes. You could try using requestAnimationFrame or querying only non-checked checkboxes querySelectorAll('input[type="checkbox"]:not(:checked)') or not calling checkAllCheckboxes for all mutations. Edit: or just call querySelector('input[type="checkbox"]:not(:checked)') and do them one by one in some kinda while(true) loop
Re: One Million Checkboxes
#157(developer here) this is....more popular than i expected. the server's gonna be having some problems for a while
Is it ok if I try to write a script to uncheck all the boxes? I don’t want to spam your server and ruin it for everyone if there’s no rate limiting. (I wince mentioning this publicly; still have flashback trauma from when some HNer wrote a script to download as much data as possible from our Firebase and got a $1k bill overnight.)
Re: One Million Checkboxes
#158Are there any companies hiring where you can still work and not waste 90% of time on meetings and docs?
Probably too many clicks and my mind is just spitting out here instead of just dying in pain in silence :D
Re: One Million Checkboxes
#159Earlier quoted context omitted.
Is it ok if I try to write a script to uncheck all the boxes? I don’t want to spam your server and ruin it for everyone if there’s no rate limiting. (I wince mentioning this publicly; still have flashback trauma from when some HNer wrote a script to download as much data as possible from our Firebase and got a $1k bill overnight.)
Stop that script, I'm watching you ruin the board!
Re: One Million Checkboxes
#160Great stuff. Little jealous, because I'd love to work on quickly scaling such experiment seeing how many people are playing with it. Sad, but having my head too burned out by corpo bullshit and my creativity level is in the basement :( Are there any companies hiring where you can still work and not waste 90% of time on meetings and docs? Probably too many clicks and my mind is just spitting out here instead of just d…