I wish ublock could do basic url rewrites without having to use greasemonkey/scripts/plugins
Things like rewriting www.reddit to old.reddit without anything extra.
Things like rewriting www.reddit to old.reddit without anything extra.
Check "I am an advanced user", then in "Advanced settings" set the parameter to something like:
userResourcesLocation file://localhost/home/user/stuff/scriptlets.js
And in the scriptlets.js file, text between the line "/// ScriptName.js" and an empty line is considered a separate scriptlet, which you can add to an URL in "My filters" like: news.ycombinator.com##+js(ScriptName.js)
The annoying bit is that scriptlets are cached, and to update them, you have to edit the "userResourcesLocation" setting, for that reason I made "scriptlets1.js" a symlink to the original file and switch back and forth whenever I edit it.But is a file URL working for you on Windows? http:// URLs are working but file:// urls are not being parsed for me.
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?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.