[Greasemonkey] Greasemonkey 0.4.1 (The Next Generation)

Lenny Domnitser ldrhcp at gmail.com
Tue Jul 26 16:30:36 EDT 2005


Great job, Aaron.

One backwards compatibility bug, though. Properties of window can be
read, but cannot be set when referenced as global variables. This
breaks some of my own as well as other people's scripts, and it would
be a shame if this was not fixed by the time of a public release. Here
is an example user script that shows what is going on.

/*1*/ justSomeVariable = 'foo';
/*2*/ GM_log(typeof justSomeVariable); // string
/*3*/ GM_log(typeof location);         // object
/*4*/ location = 'http://www.example.com/';
/*5*/ GM_log(typeof location);         // string

Instead of calling window.location's setter, line 4 creates a local
variable, like justSomeVariable.


More information about the Greasemonkey mailing list