Page 1 of 1
Can ABE do redirects to file:///
Posted: Wed Jul 27, 2016 4:08 pm
by Guest
If yes, can someone please show me a example? I want example.com/test.js redirect to file:///test.js. Thanks in advance.
Re: Can ABE do redirects to file:///
Posted: Wed Jul 27, 2016 4:14 pm
by barbaz
Can't be done only using ABE, but NoScript can do it, you need also use
surrogate script for that.
ABE:
Code: Select all
Site .example.com/test.js
Deny INC
surrogates setup:
about:config
right-click > new > string
name:
Code: Select all
noscript.surrogate.foofoofoo.replacement
value:
right-click > new > string
name:
Code: Select all
noscript.surrogate.foofoofoo.sources
value:
You can replace "foofoofoo" with anything as long as it's the same in the two pref names.
Re: Can ABE do redirects to file:///
Posted: Wed Jul 27, 2016 4:18 pm
by Guest
Thanks for your quick reply - indeed very quick. I will give your example a try and report later.

Re: Can ABE do redirects to file:///
Posted: Wed Jul 27, 2016 4:19 pm
by barbaz
You're welcome!

Re: Can ABE do redirects to file:///
Posted: Fri Jul 29, 2016 3:42 pm
by Guest
Is it really true, i can`t use the user.js like this:
Code: Select all
user_pref("noscript.surrogate.foofoofoo.replacement", "file:///test.js");
user_pref("noscript.surrogate.foofoofoo.sources", ".example.com/test.js");
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 ... ?

Re: Can ABE do redirects to file:///
Posted: Fri Jul 29, 2016 4:16 pm
by barbaz
Guest wrote:Is it really true, i can`t use the user.js like this:
Code: Select all
user_pref("noscript.surrogate.foofoofoo.replacement", "file:///test.js");
user_pref("noscript.surrogate.foofoofoo.sources", ".example.com/test.js");
to make firefox aware of those line?
The developer really wants me to type in those lines in "about:config" ?
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.js
Guest wrote:And next time i update my browser (reinstall from the tarball) i have to type it again in ... ?

Your profile resides outside the install location. Not sure what you're trying to ask here.
Re: Can ABE do redirects to file:///
Posted: Sat Jul 30, 2016 11:11 am
by Guest
Ok, my fault, was a typo!

Re: Can ABE do redirects to file:///
Posted: Thu Aug 04, 2016 12:43 pm
by Guest
If a surrogate get' s successful executed, this doen' t show up in firefox's browser console or somewhere else?
Re: Can ABE do redirects to file:///
Posted: Thu Aug 04, 2016 4:31 pm
by barbaz
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.