|
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);
|