Question about Greasemonkey

Subscribe to Question about Greasemonkey 6 posts, 4 voices

 
Freeze Scriptwright

It's not really a big deal, but is there a way to show the script used in a frame of a page you're on?

Ex: I go to site.com.
Site has a frame to site2.com.
Greasemonkey has a script for site2 and uses it.
I right click on the Greasemonkey button, but it doesn't appear.
I go to the frame in a new tab, and the script appears in the list when I right click the monkey.

Is it possible to show if a script is working in a frame, and if so, how can I?

 
jerone Scriptwright

if(top.location != location){  // anti-frame
    return
};

 
Piotr P. Kar... Scriptwright

GreaseMonkey shows only the scripts that apply to your main page, but scripts that apply to any sub-frame are executed (I tested it with <iframes>).</iframes>

 
dob Scriptwright

jerone wrote:

if(top.location != location){  // anti-frame
    return
};
More like if (top != self) top.location = self.location
 
Freeze Scriptwright

I do know how to break out of frames, thank you. That was not the question.

I know scripts that apply to pages in frames still work, I was wondering if it was possible to show if they're being used by right clicking on the GM icon.

At the moment, it will only display scripts being used on the main page, and I was wondering if there's a way I can edit it to show it regardless if the page is in a frame.

 
dob Scriptwright

I believe that's not possible.