The entire list of bugs handled in this release is also available via the 0.9.10 milestone on GitHub. Note that as always it takes some time for Mozilla to review the new version, but it's available on the all versions page immediately.
If you are using it and notice problems, it's best to either let us know at greasemonkey-dev or log an issue (and be clear that it's with this version).
Bug fixes:Enhancements:
Monday, August 22, 2011
Friday, August 12, 2011
Greasemonkey 0.9.9 Release
Update: Mozilla did not pass this version for review. Since 0.9.10 was already underway, their requested changes were made there. This version never really hit a public release.
The entire list of bugs handled in this release is also available via the 0.9.9 milestone on GitHub. Note that as always it takes some time for Mozilla to review the new version, but it's available on the all versions page immediately.
If you are using it and notice problems, it's best to either let us know at greasemonkey-dev or log an issue (and be clear that it's with this version).
Bug fixes:
The entire list of bugs handled in this release is also available via the 0.9.9 milestone on GitHub. Note that as always it takes some time for Mozilla to review the new version, but it's available on the all versions page immediately.
If you are using it and notice problems, it's best to either let us know at greasemonkey-dev or log an issue (and be clear that it's with this version).
Bug fixes:
- Pressing 'back' could rarely cause a script to run twice on the same page. (#1083)
- Extended characters would get corrupted in new scripts. (#1236, #1315)
- A full disk could cause loss of data (especially config.xml). (#1301)
- (Affecting 0.9.8) Scripts would not install (all scripts in Firefox 3: #1389, always for certain scripts: #1391)
Friday, August 05, 2011
Greasemonkey Usage by Firefox Version, August 2011
I'm revisiting the Greasemonkey usage topic. A short while back, we decided to drop support for Firefox 3.0 from new versions of Greasemonkey, somewhat based on the similar work I did back then. But I realize that last graph wasn't very well done, it didn't reveal the 3.x usage clearly. So here's an interactive trend graph that makes it much more obvious:
(Access the raw data and a larger graph at Google Docs.)
It turns out that Firefox 3.5 is even less used than 3.0, both well under 5%. On the other hand, as mentioned, 3.6 is still 25% of usage. It may well mean that we drop 3.5 support and take advantage of some of the behind-the-scenes things available only in 3.6 and higher very soon.
P.S. There's also some graphs, by major version, and minor version within 0.9, of Greasemonkey usage.
Nerd alert: To make this graph, I started with the AMO statistics, and passed it through a python script to clean up and combine the (patch level) versions. By hand, I rearranged the data into a 7-day moving average for the versions I was interested in: 3.0 and higher.
(Access the raw data and a larger graph at Google Docs.)
It turns out that Firefox 3.5 is even less used than 3.0, both well under 5%. On the other hand, as mentioned, 3.6 is still 25% of usage. It may well mean that we drop 3.5 support and take advantage of some of the behind-the-scenes things available only in 3.6 and higher very soon.
P.S. There's also some graphs, by major version, and minor version within 0.9, of Greasemonkey usage.
Nerd alert: To make this graph, I started with the AMO statistics, and passed it through a python script to clean up and combine the (patch level) versions. By hand, I rearranged the data into a 7-day moving average for the versions I was interested in: 3.0 and higher.
Monday, August 01, 2011
Greasemonkey 0.9.8 Release
Bug fixes:
If you are using it and notice problems, it's best to either let us know at greasemonkey-dev or log an issue (and be clear that it's with this version).
- User scripts cannot run in any about: pages besides about:blank. (Security enhancement; #1375)
- Global, user specified, @exclude rules. (#1002)
- New @run-at metadata imperative, which supports value document-start, as well as the standard document-end behavior. Please see the documentation. (#1103)
- Support for @match metadata imperative, as implemented by Google Chrome. Thanks to Scriptish for original implementation. (#1377)
- Support for full regular expression syntax in @include/@exclude rules. Please see the documentation. (#1378)
If you are using it and notice problems, it's best to either let us know at greasemonkey-dev or log an issue (and be clear that it's with this version).
Thursday, July 14, 2011
Greasemonkey 0.9.7 Release
Bug fixes:
If you are using it and notice problems, it's best to either let us know at greasemonkey-dev or log an issue (and be clear that it's with this version).
- Scripts with broken @icons will install, just with no icon. (#1214)
- Editing the @icon line of a script will take effect immediately. (#1215)
- Remote resources (@require, @resource, @icon) that redirect to other URLs will now work. (#1222)
- Compatibility with Firefox 6 and 7. (#1357)
- GM_openInTab() will respect the insertRelatedAfterCurrent preference. (#1370)
If you are using it and notice problems, it's best to either let us know at greasemonkey-dev or log an issue (and be clear that it's with this version).
Friday, July 08, 2011
Greasemonkey Usage by Firefox Version, July 2011
I wrote a very similar post three months ago, but there's been a lot of real motion along Mozilla's fast release track since then. It's worth revisiting these numbers:
Click for a larger image, or browse the data in Google Docs, with a larger view and a line chart as well.
This stacked area chart makes a few of trends obvious: Firefox 4 became very popular over its short life, and Firefox 5 is quickly replacing it. But also: Firefox 3.6 is definitely still kicking, at the second most common browser over the past week. Here's some data; the average daily usage for each version over the past week:
Click for a larger image, or browse the data in Google Docs, with a larger view and a line chart as well.This stacked area chart makes a few of trends obvious: Firefox 4 became very popular over its short life, and Firefox 5 is quickly replacing it. But also: Firefox 3.6 is definitely still kicking, at the second most common browser over the past week. Here's some data; the average daily usage for each version over the past week:
- 5.0 1,589,647
- 3.6 798,062
- 4.0 461,349
- 3.0 150,314
- 3.5 117,740
- 2.0 13,144
- 6.0 2,596
- 7.0 1,990
- 1.5 392
Friday, June 24, 2011
Greasemonkey 0.9.6 Release
Bug fixes:
Enhancements:
Enhancements:
- Add "get user scripts" link to the Add-ons Manager. (#1213)
- Pass site cookies when downloading scripts. (#1359)
Thursday, May 26, 2011
Greasemonkey 0.9.5 Release
Primarily because a serious issue was found in the not-yet-reviewed 0.9.4, version 0.9.5 has been hurried out.
Bug fixes:
Bug fixes:
- Installing and uninstalling the same script many times does not work properly. (#1353)
- GM_xmlhttpRequest() does not work in Firefox 5 betas. (#1354)
- (Introduced in 0.9.4:) Cannot enable nor disable scripts. (#1355)
- Installing the first user script while the user scripts pane of the add-ons manager is open leaves the "no user scripts" warning. (#1356)
- The installation dialog shows the script version, if provided with @version. (#1349)
Tuesday, May 24, 2011
Greasemonkey 0.9.4 Release
Bug fixes:
- The GM_openInTab() API again returns a handle to the window object. (#1298)
- Using alert() will not break setTimeout() nor GM_xmlhttpRequest(). (#1318)
NOTE: we currently only have a work-around in place, watch mozilla bug 647727 for a real fix.
- When re-ordering execution of scripts: clicking the first/last item disables sooner/later items, and picking any of these will switch to Execution Order sort (if it is not already selected).
- Removed the detail view for user scripts, which did not contain any more information than the list view.
Thursday, April 28, 2011
Greasemonkey 0.9.3 Release
Bug fixes:
- Error message logged ("Redeclaration of const document")/high CPU usage when closing the sidebar. (#1226, #1298)
- Navigating to a .user.js inside a frame works like anywhere else. (#1248)
- The list of user scripts in the Add-ons Manager would sometimes forget its sort order. (#1307)
- Compatibility enhancement with AutoPager (broken in 0.9.2). (#1344)
- Passing a non-function to GM_registerMenuCommand()'s commandFunc broke the entire menu, and items showed up in the wrong order (both broken in 0.9.2). (#1346, #1347)
- Passing the Referer header works, for GM_xmlhttpRequest(). (#1240)
- Accessibility: The sort buttons in the Add-ons Manager work with keyboard input (space/enter). (#1345)
Wednesday, April 20, 2011
Breaking change: Inject into about:blank?
Back in version 0.8.2 we patched a security/privacy hole by preventing injection into file: and about: scheme URLs. This was August 2009, and at the time we specifically allowed about:blank (while blocking the rest of about:). A carefully crafted web search, [site:userscripts.org/scripts/review/ "about:blank" -"src about:blank"] reveals (among plenty false positives just making frames/windows that start blank) that real scripts are using this feature. Examples include:
Then there's scripts specifically avoiding about:blank:
Yes, I ended up finding only one real script using this feature. In much the way that I imagined it way back when. But I found four specifically trying to avoid it.
We now know of one real, serious bug with this approach. It happens to have an easy workaround, but really brings to light the issue: The about:blank page has a sort of special meaning. In this bug we know about, the browser is using a navigation to about:blank as a sort of clean-up, meaning "this content is gone", much like assigning null as a cleanup activity in some programming languages.
Therefore our current plan is to not inject scripts into about:blank unless the @include rule specifically mentions it. So if you say @include about:blank#mycustomvalue then everything will work as it does. But if you say @include * (or rely on that default) then you will not run on about:blank. Current plans would include this change in the upcoming version 0.9.3.
(As always, please find us on greasemonkey-dev to discuss the development of Greasemonkey itself.)
Then there's scripts specifically avoiding about:blank:
Yes, I ended up finding only one real script using this feature. In much the way that I imagined it way back when. But I found four specifically trying to avoid it.
We now know of one real, serious bug with this approach. It happens to have an easy workaround, but really brings to light the issue: The about:blank page has a sort of special meaning. In this bug we know about, the browser is using a navigation to about:blank as a sort of clean-up, meaning "this content is gone", much like assigning null as a cleanup activity in some programming languages.
Therefore our current plan is to not inject scripts into about:blank unless the @include rule specifically mentions it. So if you say @include about:blank#mycustomvalue then everything will work as it does. But if you say @include * (or rely on that default) then you will not run on about:blank. Current plans would include this change in the upcoming version 0.9.3.
(As always, please find us on greasemonkey-dev to discuss the development of Greasemonkey itself.)
Tuesday, April 05, 2011
Greasemonkey 0.9.2 Release
This release primarily fixes some of the problems discovered since 0.9.0.
Bug Fixes:
It should be available soon, pending normal delays for review.
Bug Fixes:
- Failure on OSX when Growl is installed, but not running. (#1264)
- Incorrect display of Greasemonkey icon in Add-ons window (Firefox 3.6, OS X). (#1284, #1291)
- Provide a sort bar, to control display order of the scripts in the Add-ons manager, for Firefox 4. (#1293)
- Remove "accelerator" keys from GM_registerMenuCommand(). (#1312, previously)
- Work around incompatibility with Personas Plus extension. (#1253)
It should be available soon, pending normal delays for review.
Greasemonkey Usage, by Firefox Version, April 2011
I'd like to take the opportunity to review the current usage profile of Greasemonkey, as it relates to Firefox version. There's a couple points to be made, in regards to the work we've been doing recently on the 0.9 version branch of Greasemonkey. This data all comes from the addons.mozilla.org statistics for Greasemonkey.
First, we can quickly note that Firefox 1.x and 2.x combined total only one half of one percent of current usage. This is why we decided to up the minimum compatible version to 3.0. It wasn't worth the effort to try to keep things working in earlier browsers.
Also, now that Firefox 4.0 is out for a while, we can see why we went to 3.0 minimum, and not 4.0. So far only about one fifth of our users have upgraded. For everyone else, we think the recent enhancements we've been making are worth having, so we've taken special effort to make sure that we stay working in Firefox 3, and don't rely on features only available in Firefox 4. Over time, perhaps that will change. The slope is quite steep right now, but if history is any guide, there will be a substantial minority of users that stick with Firefox 3 for some time.
For reference, here's the exact data.
First, we can quickly note that Firefox 1.x and 2.x combined total only one half of one percent of current usage. This is why we decided to up the minimum compatible version to 3.0. It wasn't worth the effort to try to keep things working in earlier browsers.
Also, now that Firefox 4.0 is out for a while, we can see why we went to 3.0 minimum, and not 4.0. So far only about one fifth of our users have upgraded. For everyone else, we think the recent enhancements we've been making are worth having, so we've taken special effort to make sure that we stay working in Firefox 3, and don't rely on features only available in Firefox 4. Over time, perhaps that will change. The slope is quite steep right now, but if history is any guide, there will be a substantial minority of users that stick with Firefox 3 for some time.
For reference, here's the exact data.
Friday, April 01, 2011
GM_registerMenuCommand() losing "accelerator key" feature
Script authors, take note: I'm planning on moving forward with a change to remove a small part of the functionality of GM_registerMenuCommand(). This post is to explain what part, and the justification for doing so.
With the release of Firefox 4, Mozilla has made some grand changes to the look and feel of the browser. They've moved tabs to the top, emphasized the Firefox Button over the menu bar, and removed the status bar (providing the addons bar as a temporary shim for extension compatibility). This led us to re-build parts of Greasemonkey to focus on providing a toolbar, and de-emphasize the old "monkey menu" in the status bar.
It turns out that the menu code, now controlling the Tools > Greasemonkey menu, the old status bar monkey menu (in Firefox 3.x), and the new toolbar button's menu, also controls the commands for GM_registerMenuCommand() (to put them in the menu, of course!), which also controls the "accelerator keys" for those commands.
These accelerator keys have, more or less, never worked. I've written a test script (see the source, or install it) to demonstrate this. Once installed, navigate to the page about:blank#GM_rmc (you might need to hit reload, depending on how you open this) to run the script. Pick any combination of modifiers, and a letter for the accelerator key. Then try to use that accelerator key.
I'm testing on Firefox 3.6 and Greasemonkey 0.8 -- the last versions before some of these big changes started, where everything should still be as reliable as it ever was.
I ran this test: Close Firefox, launch it to the test page with only one tab open. Register a single menu command. Open the monkey menu, click on the menu item and see the alert. Press the accelerator key. No alert. I repeated this whole process for: Shift+Ctrl+Q, Alt+Shift+X, Control+M. None of it works. I saw it working with at least one earlier attempt, but even then it was fragile: normal actions like loading pages or closing tabs caused otherwise working keys to fail.
I tried a super-simple script and it too doesn't work. Installing it and pressing Ctrl+Shift+C gives me no results, but selecting the menu item does.
I've asked on our mailing list, I've asked at userscripts.org, and I've held discussions with developers. I can't find anyone that will regret losing accelerator key support in GM_registerMenuCommand(), and all my attempts to make it work well have so far failed.
So it is going to be removed, in Greasemonkey 0.9.2. Unless I hear from someone that can show me that I've been a fool, it does work, and I'm using it wrong. Please use the mailing list to get in touch with us if so!
With the release of Firefox 4, Mozilla has made some grand changes to the look and feel of the browser. They've moved tabs to the top, emphasized the Firefox Button over the menu bar, and removed the status bar (providing the addons bar as a temporary shim for extension compatibility). This led us to re-build parts of Greasemonkey to focus on providing a toolbar, and de-emphasize the old "monkey menu" in the status bar.
It turns out that the menu code, now controlling the Tools > Greasemonkey menu, the old status bar monkey menu (in Firefox 3.x), and the new toolbar button's menu, also controls the commands for GM_registerMenuCommand() (to put them in the menu, of course!), which also controls the "accelerator keys" for those commands.
These accelerator keys have, more or less, never worked. I've written a test script (see the source, or install it) to demonstrate this. Once installed, navigate to the page about:blank#GM_rmc (you might need to hit reload, depending on how you open this) to run the script. Pick any combination of modifiers, and a letter for the accelerator key. Then try to use that accelerator key.
I'm testing on Firefox 3.6 and Greasemonkey 0.8 -- the last versions before some of these big changes started, where everything should still be as reliable as it ever was.
I ran this test: Close Firefox, launch it to the test page with only one tab open. Register a single menu command. Open the monkey menu, click on the menu item and see the alert. Press the accelerator key. No alert. I repeated this whole process for: Shift+Ctrl+Q, Alt+Shift+X, Control+M. None of it works. I saw it working with at least one earlier attempt, but even then it was fragile: normal actions like loading pages or closing tabs caused otherwise working keys to fail.
I tried a super-simple script and it too doesn't work. Installing it and pressing Ctrl+Shift+C gives me no results, but selecting the menu item does.
I've asked on our mailing list, I've asked at userscripts.org, and I've held discussions with developers. I can't find anyone that will regret losing accelerator key support in GM_registerMenuCommand(), and all my attempts to make it work well have so far failed.
So it is going to be removed, in Greasemonkey 0.9.2. Unless I hear from someone that can show me that I've been a fool, it does work, and I'm using it wrong. Please use the mailing list to get in touch with us if so!
Monday, January 24, 2011
Greasemonkey 0.9.1 Release
This is primarily a quick release to deal with bugs found in 0.9.0.
Bug fixes:
Bug fixes:
- Fix user script sandbox wrapping. This deals with lots of problems like eval(). (#1258, also #1254, #1260, #1263, #1265)
If your script(s) stopped working with 0.9.0, this should fix them. - Fixed rare bug when installing scripts. (#1250)
- Fixed errors when Growl is not installed on Mac OS X. (#1249)
- Fixed problems with relative @require imperatives. (#1262)
- Allow sorting by descending (as well as ascending) execution order. (#1217)
Problems with version 0.9.0
Unfortunately, a number of problems with the recent 0.9.0 release were discovered only after it saw full public release, rather than before that, in one of our Release Candidates.
There are a few small problems related to scripts installing and running -- these are fixed, and the fixes should be released very soon.
There are also known problems with All-in-One Sidebar, and the Personas extension. These are more serious problems, and the only solution right now is to disable one or the other extension.
Keep your eyes open for release 0.9.1 which should be coming out Real Soon Now.
There are a few small problems related to scripts installing and running -- these are fixed, and the fixes should be released very soon.
There are also known problems with All-in-One Sidebar, and the Personas extension. These are more serious problems, and the only solution right now is to disable one or the other extension.
Keep your eyes open for release 0.9.1 which should be coming out Real Soon Now.
Tuesday, January 18, 2011
Greasemonkey 0.9.0 Release
It's been a long time coming, but it should be worth the wait! The next major release of Greasemonkey, version 0.9.0, is ready. Let's dive right into the new features:
New Features:
![]()

![]()
![]()
![]()

![]()
New Features:
- Compatibility with Firefox 4! Note that because of Firefox bug 612025 this is somewhat unsafe for 4.0b7 to 4.0b9 (inclusive). Beta 10 should be fixed (the nightly build on January 14th definitely is). Firefox 4 support is still preliminary. Everything probably works, but not everything works really well. The backlog of bugs for the next release is primarily focused on this.
- Complete integration with the standard Firefox Add-ons dialog, treating User Scripts as just another kind of browser add-on.
For Firefox 3, the User Script management dialog now looks like:
And for Firefox 4.0:
- A global options dialog, where the script editor can always be selected. (#1012, #1109)
- Live in-place editing for the entire script, including metadata (@name, @require, @include, @exclude, etc.). (#1148, #1157, #1165)
- Web pages that end in .user.js are loaded as normal, instead of being installed as a user script. (#1184)
- All Greasemonkey windows respond to standard close window keyboard shortcuts. (#1085)
- Support for @icon metadata imperative, displayed in the new add-ons manager integration. (#1096)
- Support user and password for GM_xmlHttpRequest(). (#1100)
- Support @version metadata imperative. (#1110)
- Suppress spurious Error: not well-formed (// ==UserScript==) error messages. (#1134)
- The "install" menu item is removed. (#1196)
Loading image
Click anywhere to cancel
Image unavailable
Loading image
Click anywhere to cancel
Image unavailable
Thursday, April 08, 2010
Greasemonkey 0.8.6 Release
The sixth release in the 0.8 series of Greasemonkey, this release includes:
Features:
Features:
- Add a hidden preference to allow greasing the unmht: scheme. (#1038)
- Allow relative URLs to be used for GM_xmlhttpRequest(), just like standard XMLHttpRequest. (#1057)
- Performance enhancements and code improvements to internal logic behind @include and @exclude rules. (#1070 #1074 #1089)
- Added translations: ca-ES, cs, fr, nl, sr-RS, vi.
- GM_xmlhttpRequest() can fail when Object.prototype has been modified. (#1065)
- Two warnings upon making new script via "New User Script". (#1069)
- Installing scripts from the hard drive (instead of via the web) can fail. (#1077)
- Fix a flaw that could allow websites to prevent Greasemonkey from running. (#1082)
- Error "this.menuCommanders is undefined" bug when closing a browser window. (#1087)
- Error "ScriptDownloader is not defined" when performing view source on a user script. (#1091)
Tuesday, February 02, 2010
Greasemonkey 0.8.5 Release
Greasemonkey 0.8.5 is a maintenance release, with these fixes and improvements:
Thanks very much to our users on the mailing list that caught a few issues in the release candidates.
Thanks very much to our users on the mailing list that caught a few issues in the release candidates.
Tuesday, December 08, 2009
Greasemonkey 0.8.4 released
Hot on the heels of 0.8.3 is a single critical bugfix in 0.8.4:
- Properly specify the .finalUrl for GM_xmlhttpRequest results. (#1063)
Subscribe to:
Posts (Atom)

