[Greasemonkey] Xpath Question

carlos campderrós gilipollas.desconcertante at gmail.com
Fri Aug 4 22:20:32 EDT 2006


On 8/4/06, Randy Burke <uncle.ranny at gmail.com> wrote:
> 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.
>
> I was thinking that it might be better to us xpath to trim down the list to
> just the check ones

First, I declare that when I need XPath I always have to check some
cheatsheet for the syntax (some cheatsheet I have not here), so maybe
I miss something in my proposals.

With XPath I would use '//input[type="checkbox"]'.
As XPath manages with the DOM and XML, maybe you could get the checked
checkboxes with something like '//input[checked="checked"]' or
something like this.

> Also is there a was to use wild cards in xpath like @id='b*' or something
> like that

Don't know...

-- 
Si no puedes deslumbrar con tu inteligencia,
desconcierta con tus gilipolleces


More information about the Greasemonkey mailing list