Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
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. |
|
|
In this case you would simply add the particular web site to the excluded pages and the script won't run. |
|
|
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? |