4

I want to run some custom userscripts in Firefox but without add-ons like Greasemonkey.

A long time ago it was possible to do so by putting scripts in a folder named userscripts\\ inside the Firefox user profile. I tried it but I think it no longer works.

So, is it possible to run userscripts in Firefox without installing add-ons?

5

No. You cannot automatically run userscripts, nor can you use GM_ functions unless you install an add-on like Tampermonkey or Violentmonkey (Greasemonkey became mostly useless with version 4).

Without such an extension, you can:

  1. Manually run userscript code in the page's console (Ctrl Shift K).
  2. Or, Convert the code to a bookmarklet, save it, and click the bookmark to run the code.

Or, if you don't trust other extension developers, you can write your own extension to inject javascript automatically. It's not that hard and you can get started with a simple manifest.json and a content_scripts js.
See "Your first extension" on MDN.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.