[Greasemonkey] Grab text string in TD

Edward Lee edilee at gmail.com
Fri Apr 22 13:43:58 EDT 2005


On 4/22/05, Paul Roub <paul at roub.net> wrote:
> Anyone have a simpler variation of this?

Assuming you have something like this overlay function..
http://www.mozdev.org/pipermail/greasemonkey/2005-April/001173.html

overlay('//text()', function(text) { text.nodeValue =
text.nodeValue.replace(/Google/g, 'Gooogle!'); });

Note that it'll only replace next nodes and not something like the
value of the search button, so Google Search remains as that.

-- 
Ed


More information about the Greasemonkey mailing list