I've always loved user scripts because they are easy to install, audit and to manage. If you prefer Firefox add-ons however, you can now compile scripts so that they can be installed just like any other extension of the browser.
Off the top of my head I can think of about 50 reasons this is great. I like it a lot, because I think many people don't try userscripts because it seems a bit more complicated than just click and install, but of course that's not true. It's also probably easier for you to get your scripts back after an uninstall if you just compile them into an add-on.
Last but not least, you can also use extensions to avoid having to use an extension such as Greasemonkey to load them, which may be useful if you encounter issues when you run it on your system or simply do not want it to be installed in the browser.
You need to open the one you want to compile, you can easily to this by renaming it as a text file (txt), and then you just have to copy the appropriate parts from it as the instructions ask you to do.
Basically, what you need to paste is the complete ==UserScript== block of the script. You may also want to modify the Firefox max version so that you do not run into any forced compatibility issues later on.
One way of doing that is to enter a very high max version, for instance 99. This prevents that the extension cannot be installed in newer versions of Firefox due to the version limit you set during compilation of the script.Advertisement
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.