3 ms·
> On a side node, if anyone has resource about how to dev/debug userscript properly, I'm all ears. I found it super inconvenient and tedious when doing it mysel
by insin 5y ago
> On a side node, if anyone has resource about how to dev/debug userscript properly, I'm all ears. I found it super inconvenient and tedious when doing it myself, and I often have to manually copy paste stuff back and forth.
Develop it as an extension with the script as your content_script, and use web-ext [1] to run it. You can then develop in your regular editor, use your browser's extension debugging tools, and web-ext will automatically reload it when you change stuff.
Most of my extensions use a .user.js file as their content_script, which I can also publish directly to Greasy Fork.
[1] https://github.com/mozilla/web-ext#web-ext https://github.com/mozilla/web-ext#web-ext