SEARCH

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!

image 

Change Greasemonkey Script Editor

Type about:config into the address bar, and then filter by the following:

greasemonkey.editor

image

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. =)

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.

  • Published 01/23/08

Comments (20)

  1. Shankar Ganesh

    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!

  2. Scott

    I can’t tell you how long I’ve needed to make this adjustment… and now I know how, thanks to you! Thank you!

  3. 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.

  4. D3

    thanks

  5. Dale

    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.

  6. Dale

    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.

  7. Steve

    Thanks a lot. This was exactly what I needed!

  8. br8

    thanks man!

  9. Tsinghu

    thank you. I have been bothered by it for quite a while.

  10. lockerzpokerz

    it opens every time the same file

  11. Dave

    It is under usr/bin/gedit

  12. Dave

    ooops sorry in Ubuntu like systems gedit, if installed, is under usr/bin/gedit

  13. Yusuf Irzan

    Hi, thanks for the article.
    It’s very helpful :)

  14. Ben

    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.

  15. needo2

    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

  16. soc

    I picked a js file as editor and could not changed it to an exec. :/
    You hint realy helped me out.

    Thx.

  17. Scarlet

    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!!

  18. Brandon

    Thanks, I was wondering how to make them open in Notepad++

    Here’s the windows directory: C:\program files\Notepad++\Notepad++.exe

  19. cathy

    mine does not have a blank line to create the editor command in

  20. Mr Sup

    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 ;)

Get Free Articles in Your Inbox!

Join 134,000 newsletter readers

Email:

Go check your email!