Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 520
Gerold Broser Avatar asked Apr 11 '26 07:04

Gerold Broser


1 Answers

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
like image 152
CennoxX Avatar answered Apr 19 '26 08:04

CennoxX



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!