Advertisement
Guest User

olark

a guest
Jul 22nd, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.olark ||
  2.     (function(i)
  3.      {
  4.          var e = window;
  5.          var h = document;
  6.          var a = e.location.protocol == "https:";
  7.          var g = i.name;
  8.          var b = "load";
  9.  
  10.          (function()
  11.           {
  12.               e[g] = function()
  13.               {
  14.                   (c.s = c.s || []).push(arguments)
  15.               };
  16.  
  17.               var c = e[g]._ = {},
  18.               var f = i.methods.length;
  19.  
  20.               while(f--)
  21.               {
  22.                   (function(j)
  23.                    {
  24.                        e[g][j] = function()
  25.                        {
  26.                            e[g]("call",j,arguments)
  27.                        }
  28.                    })
  29.                   i.methods[f]
  30.               )
  31.           }
  32.  
  33.           c.l = i.loader;
  34.           c.i = arguments.callee;
  35.           c.f = setTimeout(function()
  36.                            {
  37.                                if(c.f)
  38.                                {
  39.                                    (new Image).src = a + "//" + c.l.replace(".js",".png") + "&" + escape(e.location.href)
  40.                                }
  41.  
  42.                                c.f = null
  43.                            },
  44.                            20000
  45.                           );
  46.  
  47.           c.p = { 0 : + new Date};
  48.                                                                                                                                                                                                                
  49.           c.P = function(j)                                                                                                                                                                                      
  50.           {                                                                                                                                                                                                      
  51.               c.p[j] = new Date - c.p[0]                                                                                                                                                                        
  52.           };                                                                                                                                                                                                    
  53.                                                                                                                                                                                                                  
  54.           function d()                                                                                                                                                                                          
  55.           {                                                                                                                                                                                                      
  56.               c.P(b);                                                                                                                                                                                            
  57.               e[g](b)                                                                                                                                                                                            
  58.           }                                                                                                                                                                                                      
  59.                                                                                                                                                                                                                  
  60.           e.addEventListener ? e.addEventListener(b, d, false) : e.attachEvent("on" + b, d);                                                                                                                    
  61.                                                                                                                                                                                                                  
  62.           (function()                                                                                                                                                                                            
  63.            {                                                                                                                                                                                                    
  64.                function l(j)                                                                                                                                                                                    
  65.                {                                                                                                                                                                                                
  66.                    j = "head";                                                                                                                                                                                  
  67.                    return["<",j,"></",j,"><",z,' onl'+'oad="var d=',B,";d.getElementsByTagName('head')[0].",y,"(d.",A,"('script')).",u,"='",a,"//",c.l,"'",'"',"></",z,">"].join("")                            
  68.                }                                                                                                                                                                                                
  69.                var z = "body",                                                                                                                                                                                  
  70.                var s = h[z];                                                                                                                                                                                    
  71.                                                                                                                                                                                                                  
  72.                if(!s)                                                                                                                                                                                            
  73.                {
  74.                    return setTimeout(arguments.callee,100)
  75.                }
  76.  
  77.                c.P(1);
  78.  
  79.                var y = "appendChild";
  80.                var A = "createElement";
  81.                var u = "src";
  82.                var r = h[A]("div");
  83.                var G = r[y](h[A](g));
  84.                var D = h[A]("iframe");
  85.                var B = "document";
  86.                var C = "domain",
  87.                var q;
  88.                var r.style.display = "none";
  89.                var s.insertBefore(r, s.firstChild).id = g;
  90.                var D.frameBorder = "0";
  91.                var D.id = g+"-loader"
  92.                if(/MSIE[ ]+6/.test(navigator.userAgent))
  93.                {
  94.                    D.src="javascript:false"
  95.                }
  96.  
  97.                D.allowTransparency = "true";
  98.  
  99.                G[y](D);
  100.  
  101.                try
  102.                {
  103.                    D.contentWindow[B].open()
  104.                }
  105.                catch(F)
  106.                {
  107.                    i[C] = h[C];
  108.                    q = "javascript:var d="+B+".open();d.domain='"+h.domain+"';";
  109.                    D[u] = q+"void(0);"
  110.                }
  111.                try
  112.                {
  113.                    var H = D.contentWindow[B];
  114.                    H.write(l());
  115.                    H.close()
  116.                }
  117.                catch(E)
  118.                {
  119.                    D[u] = q+'d.write("'+l().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'
  120.                }
  121.                c.P(2)
  122.            })()
  123.          })()
  124.     })({loader:(function(a)
  125.                 {
  126.                     return "static.olark.com/jsclient/loader0.js?ts="+(a?a[1]:(+new Date))
  127.                 })(document.cookie.match(/olarkld=([0-9]+)/)),
  128.         name : "olark",
  129.         methods:["configure","extend","declare","identify"]
  130.        });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement