3 ms·
Thanks for this! But is a file URL working for you on Windows? http:// http:// URLs are working but file:// urls are not being parsed for me.
by ffpip 3y ago
Thanks for this!
But is a file URL working for you on Windows? http:// http:// URLs are working but file:// urls are not being parsed for me.
- Grom_PE 3y agoIt certainly worked for me when I used Windows. Try either of these: file:///C:/stuff/scriptlets.js file://localhost/C:/stuff/scriptlets.js I must say I wouldn't want to add a remote 3rd party URL to this setting, what if it updates with bad code?
- ffpip 3y agoAre you using Firefox? Those URLs do not work for me when using Firefox + Windows. But the code works perfectly fine when I upload it to github gists and use the raw url. And yeah, like you said do not want to inject remote JS into every site I visit so won't be using a remote URL.
- Grom_PE 3y agoNo, I'm using Vivaldi. Chromium-based browsers have an option "Allow access to file URLs" for extensions. In Firefox this functionality is missing. But it might be possible to patch omni.ja to get it anyway: https://bugzilla.mozilla.org/show_bug.cgi?id=1266960#c43 https://bugzilla.mozilla.org/show_bug.cgi?id=1266960#c43
- ffpip 3y agoYeah, figured the file access permission was the issue. Thanks for the help!