[Greasemonkey] 0.2.7a

Aaron Boodman zboogs at gmail.com
Mon Apr 4 01:40:33 EDT 2005


Here's a patch + xpi with the following changes:

* GM_xmlhttpRequest and GM_registerMenuCommand only available to user
scripts. This breaks anyone who was using window.GM_*. Jeremy is the
only one I know of who did this :). The correct way post-patch would
just be GM_* (no window qualifier). Tested this change with
annotate_google and the attached changed coralize script. Also, if
this change were to commit, scripts would no longer need the anonymous
function wrapper (though it is harmless). Comments appreciated on this
bit, I know it's ugly.

* Mook's suggestion to make GM work on nightlies (thanks!). Worked on
mine from last week.

* Jeremy's fix for the <cough>vulnerability</cough> which prevents
people from uninstalling scripts.

* User scripts are now isolated from each other in their own <script>
tags. If one errors, the others should keep going. Attached a demo
script which simply throws an error to test this.

-- 
Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: greasemonkey.xpi
Type: application/x-xpinstall
Size: 16080 bytes
Desc: not available
Url : http://mozdev.org/pipermail/greasemonkey/attachments/20050404/a043391c/greasemonkey-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: greasemonkey_0.2.7a.patch
Type: application/octet-stream
Size: 5495 bytes
Desc: not available
Url : http://mozdev.org/pipermail/greasemonkey/attachments/20050404/a043391c/greasemonkey_0.2.7a-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coralize.user.js
Type: application/x-javascript
Size: 1538 bytes
Desc: not available
Url : http://mozdev.org/pipermail/greasemonkey/attachments/20050404/a043391c/coralize.user-0001.js
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.user.js
Type: application/x-javascript
Size: 48 bytes
Desc: not available
Url : http://mozdev.org/pipermail/greasemonkey/attachments/20050404/a043391c/error.user-0001.js


More information about the Greasemonkey mailing list