[Greasemonkey] Excluding iframes,
etc from triggering my greasemonkey script?
Jonas Lundberg
my.name.is.hans at gmail.com
Sun Apr 9 01:36:01 EDT 2006
Thanks Lenny,
that works perfectly.
Hans
On 4/8/06, Lenny Domnitser <ldrhcp at gmail.com> wrote:
> 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
> }
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
More information about the Greasemonkey
mailing list