[Greasemonkey] If then alert

Lenny Domnitser ldrhcp at gmail.com
Mon Mar 27 11:37:11 EST 2006


On 3/27/06, Jeremy Dunck <jdunck at gmail.com> wrote:
> if (/(\W|^)word(\W|$)/.exec(document.body.innerHTML)) {

Also useful is document.body.textContent. Choose that or innerHTML,
depending on your needs.


More information about the Greasemonkey mailing list