1(function(){ 2 3 var canonicalURL, curProtocol; 4 5 //Get the <link> tag 6 7 var x=document.getElementsByTagName("link"); 8 9 //Find the last canonical URL 10 11 if(x.length > 0){ 12 13 for (i=0;i<x.length;i++){ 14 15 if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){ 16 17 canonicalURL=x[i].href; 18 19 } 20 21 } 22 23 } 24 25 //Get protocol 26 27 if (!canonicalURL){ 28 29 curProtocol = window.location.protocol.split(':')[0]; 30 31 } 32 33 else{ 34 35 curProtocol = canonicalURL.split(':')[0]; 36 37 } 38 39 //Get current URL if the canonical URL does not exist 40 41 if (!canonicalURL) canonicalURL = window.location.href; 42 43 //Assign script content. Replace current URL with the canonical URL 44 45 !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.