Open nmaxcom opened 3 years ago
Please see https://github.com/Tampermonkey/tampermonkey/issues/347#issuecomment-269039234
However, I'll add this to the documentation.
So am I correct in understanding that requiring a local file is not possible for TM in Firefox?
Yes. This is Firefox's feature request to implement user configurable extension file access: https://bugzilla.mozilla.org/show_bug.cgi?id=1266960
I have been searching for 30 minutes and still don't know what is the best solution to this problem. I have searched for and found the bug threads in Firefox regarding permissions, issues in this repo talking about this, hints in the documentation... Information is either old, wrong or missing. I'll love to update the documentation once I know what can be done.
Some solutions indicated doing something like what it's shown in the documentation:
However this option is not found in TM's settings or Firefox's.
Expected Behavior
Tampermonkey loading a local userscript in Firefox using @require, to allow a reasonable development feedback loop, just as I do in Chrome.
Actual Behavior
The script doesn't load, console throws: "Tampermonkey: couldn't load @require from URL file:///Users/.../SearchSelected.user.js"
Script