[Greasemonkey] Choosing the right script

Paul Roub paul at roub.net
Tue Apr 19 13:42:04 EDT 2005


> if (top.frames.length == 0) {
>

The following is a horrible, horrible idea; a terrible hack.  Guaranteed
to break if run on other sites.  Good thing Greasemonkey lets us pick
where we run :-)

You could just replace top.frames with an array of pretty much anything,
length 1.  Or append a null entry to the existing array.

-paul




More information about the Greasemonkey mailing list