1(function(){ 2 var bp = document.createElement('script'); 3 var curProtocol = window.location.protocol.split(':')[0]; 4 if (curProtocol === 'https') { 5 bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; 6 } 7 else { 8 bp.src = 'http://push.zhanzhang.baidu.com/push.js'; 9 } 10 var s = document.getElementsByTagName("script")[1]; 11 s.parentNode.insertBefore(bp, s); 12})(); 13 14 15 16 17(function(){ 18 19 var canonicalURL, curProtocol; 20 21 //Get the <link> tag 22 23 var x=document.getElementsByTagName("link"); 24 25 //Find the last canonical URL 26 27 if(x.length > 0){ 28 29 for (i=0;i<x.length;i++){ 30 31 if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){ 32 33 canonicalURL=x[i].href; 34 35 } 36 37 } 38 39 } 40 41 //Get protocol 42 43 if (!canonicalURL){ 44 45 curProtocol = window.location.protocol.split(':')[0]; 46 47 } 48 49 else{ 50 51 curProtocol = canonicalURL.split(':')[0]; 52 53 } 54 55 //Get current URL if the canonical URL does not exist 56 57 if (!canonicalURL) canonicalURL = window.location.href; 58 59 //Assign script content. Replace current URL with the canonical URL 60 61 !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.