How to debug Greasemonkey/Tampermonkey userscripts with FF 57+ (with WebExtensions)?

2.4k Views Asked by At

I can't find my userscript(s) in the Browser Debugger's Open file... box (with the name defined at // @name).

It seems that Annarfych's answer and Hjulle's answer to How to debug Greasemonkey script with the Firebug extension? do not work any more.

Because of Michael's findings to Greasemonkey script folder missing?

Apparently GreaseMonkey no longer stores the user scripts in gm_scripts for Firefox. [...] the scripts are apparently stored in an SQLite database file.

1

There are 1 best solutions below

1
On

As there is no answer until now:

  • Open DevTools (F12) > Debugger
  • The userscripts for Tampermonkey are stored in the addon folder Tampermonkey > userscripts folder
  • For Greasemonkey the UserScripts are stored in the folder user-script:// > the namespace of the userscript > userscript name