Pinterest Stumbleupon Whatsapp
Ads by Google

While browsing online the other day, I came across a conversion tool which allows you to take a Greasemonkey Greasemonkey Makes Firefox Unbeatable Greasemonkey Makes Firefox Unbeatable Read More script and turn it into a “xpi” Firefox extension.

firefoxextensions.gif

It’s entitled “User Script Compiler” and it is very easy to use. Turning Greasemonkey scripts into proper Firefox extensions is all the rage at the moment. Gina Trapani over at Lifehacker has taken all the best Greasemonkey scripts (with permission of course) for Google products such as Gmail, Google Reader, Google Calendar and YouTube, and merged them all into Firefox extensions. Now you can do the same – even if you don’t have any programming knowledge.

First, you need to get the actual Greasemonkey script. Go to your Firefox profile in your Windows Explorer and find the “gm_scripts” sub-folder. This folder contains all the Greasemonkey scripts that you have installed on your Firefox browser and should all be in javascript file format (.js). Alternatively, you can download some scripts from Userscripts.org. Or check out previously posted ‘20 must-see Greasemonkey Addons 20 must-see Greasemonkey Addons(No Technical Knowledge Req.) 20 must-see Greasemonkey Addons(No Technical Knowledge Req.) Read More

Now right-click on the desired script, choose “rename” and turn the file from javascript to a text file (.txt). Open the text file and you have your code. Then go to the User Script Compiler and enter the required information in the fields provided.

Turn Greasemonkey Scripts into Firefox Extensions

Ads by Google

I just copied and pasted the entire contents of the text file into the User Script field. If you want to add the developer’s name and so on, you can normally find it at the beginning of the text file. Then when all fields are filled, press the “compile” button. An XPI file should now be generated for you onto your computer. That’s your new Firefox extension.

To install it onto your Firefox, you have to click on it with your mouse and drag it from your Windows Explorer onto the Firefox browser page. The regular installation box will then open and you should then install it as normal, like any other extension. Close and restart Firefox and your extension should now be there. Try it out to see if it works. I tried it on three different Greasemonkey scripts and they work flawlessly.

Oh and don’t forget to delete the original Greasemonkey script which is now not needed! If you’re feeling nice, why not email the script developer and send them a copy of the new Firefox extension file?

You’re probably asking by now what the advantage is of doing all this. Isn’t a Greasemonkey script and a Firefox extension essentially doing the same thing? Well yes but if you’re say a programmer / developer or just someone who wants to pass on a good script to someone else, converting those Greasemonkey scripts into full Firefox extensions is beneficial if you want to get them out to a wider use base. I mean, everyone “gets” Firefox and extensions but try explaining the finer points of Greasemonkey to someone who can barely grasp the concept of programming. It’s much easier to point them to an extension and say “click on that”. If they have to install the Greasemonkey extension and then the script, they would probably not bother.

Are there any other Firefox compiler tools out there that we should know about?

  1. Mike Nolan
    April 16, 2009 at 12:58 pm

    This is pretty cool but it would be really useful if there was a similar thing for Internet Explorer extensions.

  2. Andrew
    February 28, 2009 at 2:42 pm

    How can one include multiple greasemonkey scripts in this compiler?

  3. Amy
    March 8, 2008 at 2:52 pm

    Great post, but is there any similarly simple way to turn extensions into greasemonkey scripts? There are certain extensions I enable and disable a lot -- they'd be a lot more useful with greasemonkey's ability to do so without a restart.

    Thanks.

  4. Syahid A.
    February 5, 2008 at 3:03 am

    With this script, I don't have to explain to anyone again what "Greasemonkey" is and what it offers. Essential tool.

  5. mark
    February 4, 2008 at 10:36 pm

    Nice! I'd rather stick with the gmonkey though.

Leave a Reply

Your email address will not be published. Required fields are marked *