[Greasemonkey] dealing with frames

Jursa, Jan (init) Jan.Jursa at init.de
Thu Oct 6 10:21:21 EDT 2005


Hi Julien,

> What about using a more specific @include

that didn't work for me

> or adding some code to make
>sure the url is that of the top frame?

Yes, I checked the frame like so:
if(window.top.MainFrame==this){ ...

or

if(window.top.frames.AnotherFrame==this){...

that works. 

Cheers,
Jan




More information about the Greasemonkey mailing list