[Greasemonkey] If then alert

Jeremy Dunck jdunck at gmail.com
Mon Mar 27 08:18:51 EST 2006


On 3/27/06, Oatka <oatka at yahoo.com> wrote:
>
> Does anyone know what code to use to make Greasemonkey search a page for a
> specific word, and if that word is found then to display an alert window?
> --

Something like:
if (/(\W|^)word(\W|$)/.exec(document.body.innerHTML)) {

}
?


More information about the Greasemonkey mailing list