[Greasemonkey] Choosing the right script

Matthias Bauer ml-greasemonkey-42imk83y at moeffju.net
Tue Apr 19 20:19:26 EDT 2005


On 19.04.2005 18:45 Eric Darchis wrote:

> If you open a sub-page of mess.be in another tab/window, a javascript
> detects that there is no frame anymore and forwards you back to the
> homepage.
> 
> The script looks like:
> <SCRIPT LANGUAGE="JavaScript">
> <!--
> if (top.frames.length == 0) {
> ...

Couldn't you just change top.frames?

top._frames = top.frames;
top.frames = new Array('foo');

Ta-da, script doesn't run any more. Try?


-Matt


More information about the Greasemonkey mailing list