Can ABE do redirects to file:///
Can ABE do redirects to file:///
If yes, can someone please show me a example? I want example.com/test.js redirect to file:///test.js. Thanks in advance.
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
Re: Can ABE do redirects to file:///
Can't be done only using ABE, but NoScript can do it, you need also use surrogate script for that.
ABE:
surrogates setup:
about:config
right-click > new > string
name:
value:
right-click > new > string
name:
value:
You can replace "foofoofoo" with anything as long as it's the same in the two pref names.
ABE:
Code: Select all
Site .example.com/test.js
Deny INC
about:config
right-click > new > string
name:
Code: Select all
noscript.surrogate.foofoofoo.replacement
Code: Select all
file:///test.js
name:
Code: Select all
noscript.surrogate.foofoofoo.sources
Code: Select all
.example.com/test.js
*Always* check the changelogs BEFORE updating that important software!
-
Re: Can ABE do redirects to file:///
Thanks for your quick reply - indeed very quick. I will give your example a try and report later.
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
Re: Can ABE do redirects to file:///
You're welcome!
*Always* check the changelogs BEFORE updating that important software!
-
Re: Can ABE do redirects to file:///
Is it really true, i can`t use the user.js like this:
to make firefox aware of those line?
The developer really wants me to type in those lines in "about:config" ?
And next time i update my browser (reinstall from the tarball) i have to type it again in ... ?
Code: Select all
user_pref("noscript.surrogate.foofoofoo.replacement", "file:///test.js");
user_pref("noscript.surrogate.foofoofoo.sources", ".example.com/test.js");
The developer really wants me to type in those lines in "about:config" ?
And next time i update my browser (reinstall from the tarball) i have to type it again in ... ?
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
Re: Can ABE do redirects to file:///
No this is not true. You should be able to add those lines to user.js and restart Firefox and have it work. The fact it's not working means you've likely got a corrupt prefs.js or user.jsGuest wrote:Is it really true, i can`t use the user.js like this:
to make firefox aware of those line?Code: Select all
user_pref("noscript.surrogate.foofoofoo.replacement", "file:///test.js"); user_pref("noscript.surrogate.foofoofoo.sources", ".example.com/test.js");
The developer really wants me to type in those lines in "about:config" ?
Your profile resides outside the install location. Not sure what you're trying to ask here.Guest wrote:And next time i update my browser (reinstall from the tarball) i have to type it again in ... ?
*Always* check the changelogs BEFORE updating that important software!
-
Re: Can ABE do redirects to file:///
Ok, my fault, was a typo!
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
Re: Can ABE do redirects to file:///
If a surrogate get' s successful executed, this doen' t show up in firefox's browser console or somewhere else?
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
Re: Can ABE do redirects to file:///
No, but it's easy to make it, just stick a console.log call (or the like) on the end of the surrogate in question if you'd like to have that information.
*Always* check the changelogs BEFORE updating that important software!
-