Page 1 of 1
Adding surrogates
Posted: Wed Oct 10, 2012 6:36 am
by Guest
Since noscript has support for surrogate scripting, can the developer add the following suurogates as given in the list:
http://pastebin.com/EJ02JXYk
Re: Adding surrogates
Posted: Fri Oct 12, 2012 12:23 am
by GµårÐïåñ
Yes and No. You can add your own custom surrogates, absolutely but there is a proper format for it.
You need to go to
about:config and add the following two items for each of the surrogates you want to create:
- noscript.surrogate.<insert_name>.sources
Where you give the patter to match to the URL where this surrogate would kick in.
- noscript.surrogate.<insert_name>.replacement
Where you give it the code that you want to use in place of the original code.
For the matching patterns on sources, refer to :
Script Surrogates Quick Reference and also make sure that <insert_name> in both keys (which are string by the way) are the SAME.
That's it, have at it and enjoy!