Monday, October 16, 2006

Greasemonkey 0.6.6 - Firefox 2 support and new install UI


Download here, or wait for Firefox 2's cool new extension autoupdater to prompt you.

The main changes from 0.6.5 are:

  • Firefox 2.0 support
  • New, less crappy script installation UI
  • Spanish localization
The new script installation UI is a bit of a change. When I first wrote Greasemonkey, it was intended to be for JavaScript hackers only. I didn't envision there even being a UI at first -- just some configuration files. But now that lots of non-programmers use Greasemonkey, displaying the source code when you click on a user script doesn't make much sense.

When you click on a user script now, it pops up an installation dialog that shows the title, description, and pages the script will be included on. If you want to see the source code, you can still do that by clicking "View Script Source" in the install dialog or in the user script's context menu.

35 comments:

Anonymous said...

Just reporting a typo bug: var foundScript -> foundInjectedScript in browser.js

Thom Shannon said...
This post has been removed by a blog administrator.
Thom Shannon said...

Thats great, greasemonkey should be for everyone, even my mum! :)

Anonymous said...

There's a bug in the Spanish locale. I have filed a bug report: http://bugzilla.mozdev.org/show_bug.cgi?id=15435

Anonymous said...

adam, can you submit this update to addons.mozilla.org so it can go into the update channel?

Net said...

Thanks for the 2.0 update. I confirm the bug http://bugzilla.mozdev.org/show_bug.cgi?id=15435

I'm have configured FF with the spanish language, so I confirm the bug.

Paul Irish said...

Fantastic. Thanks for the update, Aaron.

JLD said...

Hello. I've installed the latest greasemonkey version (0.6.6), which includes spanish localization, under Firefox 2.0rc3 (es-ES locale).

It didn't work (an error about an external entity in a dtd file). Once I realized that it was a locale related problem, I tried to recode the file "greasemonkey.dtd" from latin1 (its original codification) to utf8. Then it worked perfectly.

Is it a platform issue (i'm using Ubuntu Linux), or should the file actually be utf8?

boogs said...

I screwed up the encoding of one of the files needed for spanish localization. Fix coming up soon.

Anonymous said...

Hi! I was just wondering if there have been any issues regarding sending referers on the xmlhttprequest?

My script depends on this and worked in Firefox 1.5, but is broken in Firefox 2.

Any thoughts?

Anonymous said...

So, when can we expect the IE7 version of Greasemonkey? ;-)

Seriously, I would love to see a similar IE7 extension - has anybody seriously started work on this yet?

Anonymous said...

If you're writing a script, the new prompt is a pain in the ass. Before, you could keep a tab open that contained script, and hit F5 + click "install" after you made changes.

Now, you have to go to Open File, hunt for the file, and then wait 4 seconds. It doesn't sound like much, but do it for a few hours and it's annoying.

Jeremy Dunck said...

"
Now, you have to go to Open File, hunt for the file, and then wait 4 seconds. It doesn't sound like much, but do it for a few hours and it's annoying.
"

Actually, GM has supported editting the installed file directly for a while.

After installing the first time, go to
Tools > Greasemonkey > Manage User Scripts,
then pick the script you're fiddling with from the list, then click "Edit". T

The first time you do this, you be prompted to pick your favorite editor.

GM will then open the file in the editor, and you're editting the live script.

(You may want to save as back to a convenient location after you're done editting.)

If you screw up while picking your editor, about:config, then reset greasemonkey.editor.

Anonymous said...

Sweet. Thanks Jeremy

Ryan said...

Ok so I've installed the latest version on FF2.0, however when I click install user script on the prompt UI nothing happens...nothing at all, no script gets installed at all.

Meh?

Anonymous said...

GM won't install on SeaMonkey, and it hasn't for the last few versions. Got a fix? Thanks!

Anonymous said...

"If you screw up while picking your editor, about:config, then reset greasemonkey.editor."
Excellent! Just the info I was searching for... Obviously I screwed this setting, as I had a user.js as editor... :-P Now, it works again! Thanks.

"So, when can we expect the IE7 version of Greasemonkey? ;-)"
Reify Turnabout seems to be what you are looking for... I didn't tested it, I use IE mostly to test compatibility of my Web pages...

h0mi said...

Im having an issue trying to install scripts... the install button, once it becomes enabled, does nothing when you click it. It won't install the script.

Jeremy Dunck said...

Please open the error console (nee javascript console) by using Tools > Error Console. Click the clear button to remove any previously-reported errors.

Then attempt to install a script (clicking the install button), cancel the dialog, and report any errors in the console here.

Cheers!

Anonymous said...

I too am having trouble installing new user scripts with Firefox 2.0. Here's the js error I'm receiving:

Error: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIChannel.open]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://greasemonkey/content/utils.js :: getContents :: line 167" data: no]
Source File: chrome://greasemonkey/content/utils.js
Line: 167

Jeremy Dunck said...

Please see these troubleshooting steps.

Chris Bouchard said...

Does this mean we can use Javascript 1.7 in our scripts now? Because if I recall, 1.6 is still the Firefox default on web pages.

h0mi said...

Jeremy- that appears to have fixed the problem (not entirely sure yet but I was able to click on "install" and it successfully installed the program).

I don't suppose that directory could be created automatically when installing greasemonkey eh?

Anonymous said...

Hello! I need some help! I would like to know Why doesnt Greasemonkey installs some of my .js script files. Instead it shows the source code. This files where downloaded and saved im my HDD.
I dont know how to install them on FireFox.

Please help me, ricardojafonso@yahoo.com

Jeremy Dunck said...

The files have to be named *.user.js, not just *.js.

Anonymous said...

For some reason Firefox wont let me view the source of greasemonkey scripts in the browser when I click on the "View Source" button. Instead it makes me download the file.

How can i fix this?

Atish Nazir said...

I have had no luck using GreaseMonkey 0.6.6 on FireFox 2.0.0.1 on MacOS 10.4.8 .

"Install New Script" does nothing.
"Manage User Scripts" brings up a dialogue, but websites are not persisted once the dismissed.
"New User Script" brings up my assigned text editor with a template script, however saving a scripts does nothing within the "Manage User Scripts" list.

Anonymous said...

Good post.
I was searching the internet for cheap internet phone service (Voip) and found a company called Via Talk. They are cheaper and just as good as Vonage.

They are now offering 1 year phone service Free when you purchase 1 year – for a limited time. Check it out at Via Talk

Anonymous said...

Nice blog.
If you’re interested in free weight loss tips please visit this site.

John Tiniakos said...

Hey you have a very good blog.

If by any chance you need weight loss help check out by blog: Weight Loss Tips

Anonymous said...

Car Auctions Nice blog. Check out my blog for the #1 source for car auctions.

Anonymous said...

FREE Business Advertising Tips The Most Powerful Internet Classified Advertising Methods On The Web! "TOP" Rated Money Making Website! A Must See!!!

Anonymous said...

A friend of mine sent me the following:
Firefox 2.0.0.2
Latest Greasemonkey 0.6.7.2007.0131.0

Add on's installed at the moment (But I have disabled and uninstalled these one at a time to see if this is the problem:
Image shack right click
linky
img tag
Nightly tester tools
stumbleupon
Stumble upon addon
wayback
whois lookup

Using xp os Dell M1210 (fabulous machine!!!!)

I originally tried to install this in firefox when I had no other software installed but what came factory installed which was nothing. So we can eliminate that as an issue most likely.z

I migrated my profile for firefox to this machine, all other plugins worked but greasemonkey. It installs fine just can't install any scripts.


Any ideas?

PUNJABIANS said...

sir i have installed the firfox 3.0b now the problem is that how can i download the Greaseminkey and which version is sutable for it

tercumenette said...

thanks