Can't use local files as surrogate scripts
Posted: Sat Dec 14, 2013 4:28 pm
From http://forums.informaction.com/viewtopi ... 973#p50973:
NS 2.6.8.8rc1
create the following prefs:
Dummy.js:
No alert on noscript.net when scripts are allowed. Nothing related in the error console. Putting the code directly in the noscript.surrogate.foo.replacement preference was enough to make it work. Is this a bug, or am I doing something wrong?
But that doesn't seem to work. Testcase:Giorgio Maone wrote:Rather than putting the code in the noscript.surrogate.xyz.replacement preference, put there a file:/// URL pointing at your local external script.
NS 2.6.8.8rc1
create the following prefs:
Code: Select all
noscript.surrogate.foo.sources : @noscript.net
noscript.surrogate.foo.replacement : file:///full/path/to/Dummy.js
Code: Select all
alert("Cuckoo from local file");