News for hackers. Stuff that matters.
Re:One Million Checkboxes by Mystery-Machine on Wednesday June 26, 2024 @04:41PM (#40804379)
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 by sillysaurusx on Wednesday June 26, 2024 @05:16PM (#40804672)
Just write data to the underlying API. No need to interact with the browser UI at all.