Adding surrogates

Ask for help about NoScript, no registration needed to post
Guest

Adding surrogates

Post 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
Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3377
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Adding surrogates

Post 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!
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (world is a vampire) Gecko/99999999 (browsers are zombies) AntidoteXXX (users are the virus)
Post Reply