[Greasemonkey] XPath Help: Selecting items before a tag within a span
Aaron Boodman
boogs at youngpup.net
Mon Feb 12 15:53:14 PST 2007
> Here is my current xpath:
> //span[@class='posttext']/a[contains(@HREF, 'youtube.com/watch?v')]
//span[@class='posttext']/a[contains(@HREF, 'youtube.com/watch?v') and
not(preceding-sibling::hr)]
? (untested, but something like ought to work)
>
> Is it possible to only select the needed urls before the hr tag only? (there
> could be multiple youtube urls in a posttext span)
>
> TIA
> Rich
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
More information about the Greasemonkey
mailing list