[Greasemonkey] Changing Links without IDs
mcguire at telerama.com
mcguire at telerama.com
Mon Mar 20 12:32:56 EST 2006
Quoting vaesel at poczta.onet.pl:
> fastest and easiest way is XPath:
>
> link_without_id = document.evaluate("//a[text()='text of the
> URL']",document,null,9,null).singleNodeValue
>
> > I'm a noob. How might I change a link that has no ID? It's main identifying
> > feature is the text of the URL.
sounds like his path might be: "//a[@href='text of the URL']"
More information about the Greasemonkey
mailing list