Uncheck Boxes v2

By itscool Last update Nov 12, 2011 — Installed 441 times.

Uncheck/check Boxes

in
Subscribe to Uncheck/check Boxes 1 post, 1 voice

asdfuserscripts User
FirefoxWindows

i added a command to check Boxes (useful for other sites).
thank you.

// ==UserScript==
// @name Uncheck Boxes
// @namespace http://userscripts.org/users/24385/
// @description Unchecks check boxes that are checked by default.
// @include http://*
// @include https://*
// ==/UserScript==
/*
Original by Rocky Neurock
Modifications by lambroger 5/14/2008
Changelog:
- 5/14/2008 encapsulated code in function so it does cause untold chaos.
- 5/14/2008 added GM_registerMenuCommand to reference new function wrapper. See last line for command :)
*/

function unCheckEm() {
var cBoxes=document.getElementsByTagName('input');

for (var i=0; i < cBoxes.length; i++)
if (cBoxes[i].type=="checkbox")
cBoxes[i].checked=false;

}

function CheckEm() {
var cBoxes=document.getElementsByTagName('input');

for (var i=0; i < cBoxes.length; i++)
if (cBoxes[i].type=="checkbox")
cBoxes[i].checked=true;

}
GM_registerMenuCommand("√ Check Boxes",CheckEm);
GM_registerMenuCommand("□ Uncheck Boxes",unCheckEm);

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel