[Greasemonkey] replacing text

Vlaj Bert vlajbert at gmail.com
Thu Jun 16 10:40:44 EDT 2005


BTW, would you get better performance by fetching all anchor tags,
looking for the one you want and rewriting the href attr instead of
regexing through a huge html string, replacing what you want, then having
to re-DOM the whole document? 

On 6/16/05, Jeremy Dunck <jdunck at gmail.com> wrote:
> On 6/16/05, Anthony Lieuallen <arantius at gmail.com> wrote:
> > Using the replace JS method, the first argument can be a regular
> > expression, but the second must be a string.  I.E:
> 
> Or a function, actually, which is incredibly useful.
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list