Post Reply 
Firefox Noscript and Sidki's JS Insertion
Sep. 05, 2008, 02:34 AM
Post: #1
Firefox Noscript and Sidki's JS Insertion
I am just trying Firefox with Noscript extension set to block scripts globally. I had put local.ptron into whitelist to allow 3rd party js code inserted by proxomitron.

However, sidki uses below code to insert his js:
Code:
    <script id="proxScrHead" type="text/javascript">//<![CDATA[
     if (typeof prxCountLd == "undefined") {
       var prxO = {oSet: {
         $_cfg: "2008-01-02", $_level: 4, $_xns: document.documentElement ? document.documentElement.namespaceURI : null,
         _titTime: "10:09:53", _catchBoxes: 10, _catchErrors: 6, _catchRnd: 20,
         $css: 4, $toDo: 1+2+4+8+16+32+64, $stopMe: 1+2+4+8, $popUp: 1+2+4+8, $toButton: 1+2+4+8
       }, oNce: {
         ncFrom: "http://slashdot.org/search/referrer-karma.php%3Fq%3DBig+Bang",
         ncWith: "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.9.9"
       }};

       (function () {
         var jsLoc = "http://local.ptron/sidki_h_" + prxO.oSet.$_cfg + "/proxjs-full.js";
         if (document.write && !prxO.oSet.$_xns)
           document.write("\n<script id=\"proxScrLink\" type=\"text/javascript\" src=\"" + jsLoc + "\">\<\/script>");
         else {
           var tag = prxO.oSet.$_xns ? document.createElementNS(prxO.oSet.$_xns, "script") : document.createElement("script");
           tag.src = jsLoc; tag.type = "text/javascript"; tag.id = "proxScrLink";
           document.getElementById("proxScrHead").parentNode.appendChild(tag);
         }
       }) ();
     }
    //]]></script>

The above code is considered as the 1st party script to the current page viewed. When the site is not in the whitelist, the above code is blocked and then sidki's proxjs-(full|min).js is not inserted sucessfuly.

I had tried to insert sidki's js directly by adding a new filter that inserts:
Code:
<script id="proxScrLink" src="http://local.ptron/sidki_h_2008-01-02/proxjs-full.js" type="text/javascript">

but it broke some sites.

It seems sidki has his reason to insert his code that way but I know nothing about javascript code. Banging Head

Anybody could have a look? Smile!
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Firefox Noscript and Sidki's JS Insertion - whenever - Sep. 05, 2008 02:34 AM
RE: Firefox Noscript and Sidki's JS Insertion - Guest - Sep. 07, 2008, 11:32 PM

Forum Jump: