Uncheck Boxes

By Rocky Neurock Last update Mar 21, 2008 — Installed 398 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
itscool Scriptwright

I've updated this script to use GM_registerMenuCommand. Here is the updated source.

// ==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;

}

GM_registerMenuCommand("Uncheck boxes",unCheckEm);

You can also find a copy of it via my profile.

Cheers!

Btw, this is really useful on stumbleupon when you want to clear like 157 checked boxes at once.

 
Rocky Neurock Script's Author

In this case you would simply add the particular web site to the excluded pages and the script won't run.

 
ACiDbaby User

I wonder, if this script will cause me headaches if say I were to go to modify my preferences for my account on a web site... Would it uncheck the checkboxes that I've set previously?

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