[Greasemonkey] Xpath Question
Randy Burke
uncle.ranny at gmail.com
Fri Aug 4 10:22:17 EDT 2006
I have a scipt I use alot, there is a function to clean all the check boxes
on a pag, there are alot of them and it is very slow.
//clears all checkmarks. clunky but it works...
function runClr(){
for (I = 0; I < 1199; I++){
var x = 'B' + I;
var ckbox=document.getElementById(x);
if (ckbox){
if (ckbox.checked === true){
ticks(x, false); //function to set or clear checkboxes
}
}
}
}
I was thinking that it might be better to us xpath to trim down the list to
just the check ones
Also is there a was to use wild cards in xpath like @id='b*' or something
like that
More information about the Greasemonkey
mailing list