[Greasemonkey] Grab text string in TD

Edward Lee edilee at gmail.com
Fri Apr 22 13:20:05 EDT 2005


On 4/22/05, Scott R. Turner <srt at aero.org> wrote:
>    document.body.innerHTML = document.body.innerHTML.replace(/Google/,/Goggle/);

For me, that replaces "Google Search" with "null Search" but all other
instances Google remain the same because you didn't say to do a global
match and you're replacing it with a regular expression /Goggle/
instead of a string.

-- 
Ed


More information about the Greasemonkey mailing list