To check all checkboxes in a web page, open DevTools with F12, paste the following code into the console, and execute it.
| |
Alternatively,
Create a new bookmark, and in the address field when registering (where you usually enter https://…), paste the following code and save it. Display the web page where you want to check the boxes, and click the created bookmark to check all checkboxes.
| |
If you want to uncheck all, change the boxes[i].checked = true; part of the above script to boxes[i].checked = false;.
![Featured image of post [JS] How to Check All Checkboxes on a Web Page at Once (with Bookmarklet)](/p/web%E3%83%9A%E3%83%BC%E3%82%B8%E5%86%85%E3%81%AE%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%E3%82%92%E5%85%A8%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%81%99%E3%82%8B/img_hu1119118882358189845.webp)