How-To Geek
Change or Set the Greasemonkey Script Editor in Firefox
If you are a fan of the Greasemonkey extension for Firefox you might wonder how to change the script editor/viewer as there is no option for this in the UI. It’s even worse when you download scripts from some website and the line endings don’t work in the inferior default editor.
Holy Jumbled Notepad, Batman!
Change Greasemonkey Script Editor
Type about:config into the address bar, and then filter by the following:
greasemonkey.editor


If the key does not exist, right-click in the empty area and create a new string, giving it the following values:
- Key Name: greasemonkey.editor
- Key Value: Full path to an editor that doesn’t suck as much as notepad.
This tip should work for any operating system that supports Firefox. Thanks to Daniel for forgetting how to do this and inspiring the article. =)
Got Feedback? Join the discussion at discuss.howtogeek.com
Comments (20)
Programmer by day, geek by night, The Geek, also known as Lowell Heddings, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on Google+ if you'd like.
- Published 01/23/08




Oh! This is very useful.
I’ve tried editing GM scripts before, but I couldn’t get them opened anywhere.
This tip is really handy.
Thank you!
I can’t tell you how long I’ve needed to make this adjustment… and now I know how, thanks to you! Thank you!
Since GM scripts are just .js files, what I’d always done was just open them from the directory path & associate .js files with Notepad++. This is a much better solution.
thanks
Thanks so much for the info about changing the editor for Greasemonkey. I chose notepad the first time I edited a script and I was going crazy trying to change it to Progreammer’s Notepad. Great site.
jambarama
Since GM scripts are just .js files, what I’d always done was just open them from the directory path & associate .js files with Notepad++. This is a much better solution.
I tried that and it just wouldn’t work for me.
Thanks a lot. This was exactly what I needed!
thanks man!
thank you. I have been bothered by it for quite a while.
it opens every time the same file
It is under usr/bin/gedit
ooops sorry in Ubuntu like systems gedit, if installed, is under usr/bin/gedit
Hi, thanks for the article.
It’s very helpful :)
Thanks dawg that shit was tight. Now I can edit my scripts.
Dave: you are a idiot. Use the which command to pull the path of whatever your runnin.
In current version it asks you for a editor to pick on first open
if you wanna change the editor just reset that field from about:config
I picked a js file as editor and could not changed it to an exec. :/
You hint realy helped me out.
Thx.
If you are using greasemonkey 0.9.1,here is another way to change the editor.
greasemonkey >options >change editor >click the whatever editor you like >open >ok
and done!!
i tryed the one in the article first and worked well but this was written in 2008 so
seemes was a little out of date.
hope my comment helps some geek wannabe like me!!
Thanks, I was wondering how to make them open in Notepad++
Here’s the windows directory: C:\program files\Notepad++\Notepad++.exe
mine does not have a blank line to create the editor command in
go to tools to addon click thin on the user script click it youll see the scripts right click on it go to show folder it will pop up a folder with a script right click it and edit ;)