[Greasemonkey] Excluding iframes,
etc from triggering my greasemonkey script?
Lenny Domnitser
ldrhcp at gmail.com
Sat Apr 8 15:48:31 EDT 2006
On 4/8/06, Jonas Lundberg <my.name.is.hans at gmail.com> wrote:
> My greasemonkey script is not only triggered when the page is first
> loaded, it is also triggered by each iFrame on the page that loads
> html documents.
> Is there any way to avoid this?
For site-specific scripts, tune your @include.
If you want an "@include *" script that only runs in the top window,
use something like:
if(top == self) {
// the script
}
More information about the Greasemonkey
mailing list