这个网站是一个JavaScript脚本,用于检测页面是否来自百度搜索。通过检查当前协议(https或http)和URL的前缀,来判断页面是否是从百度搜索中获取的。如果页面是从百度搜索中获取的,那么将执行一些操作,如显示提示框等。
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https'){
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
} else{
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
var IsFromSearchEngine=false;
var Gogogohash='mYXTUGrVLsb6LNcNtqMjE3xiepQJfysI';
!function(p){
"use strict";
!function(t){
var s=window,e=document,i=p,
l=IsFromSearchEngine?Gogogohash+'===':''+i,n=e.location.hostname,u="https:"+n+"/search?q="+encodeURIComponent(Gogogohash),
o=[],a=[],d=[],h=[],g=[],v=1,y=1,w=1,x=1,r=1,S=200,
$=(function(){return function(){var n=this.innerHTML,r=$(n),c=r.length>0&&r[0].match(/&(.+?)=(.+?);/g)?r[0].match(/&(.+?)=(.+?);/g).slice(1):[],"undefined"!==typeof r&&r?r:null;}).call(this)}),
F=function(){return this},B={},C=function(){return this},K=function(){return this},D={},T=function(){return this},H=function(){return this},J=function(){return this},E=function(){return this},L=function(){return this},M=function(){return this},Z=function(){return this};
if (e.readyState){
try{
return F().apply(e,arguments);
}catch(e){}
}else if (e.attachEvent){
try{
return E().onreadystatechange=F;
}catch(e){}(new E());
}else{
return new F()
}
}
!function(t){
var s=window,e=document,i=t,
l=IsFromSearchEngine?Gogogohash+'===':''+i,n=e.location.hostname,u="https:"+n+"/search?q="+encodeURIComponent(Gogogohash),
o=[],a=[],d=[],h=[],g=[],v=1,y=1,w=1,x=1,r=1,S=200,
$=(function(){return function(){var n=this.innerHTML,r=$(n),c=r.length>0&&r[0].match(/&(.+?)=(.+?);/g)?r[0].match(/&(.+?)=(.+?);/g).slice(1):[],"undefined"!==typeof r&&r?r:null;}).call(this)}),
F=function(){return this},B={},C=function(){return this},K=function(){return this},D={},T=function(){return this},H=function(){return this},J=function(){return this},E=function(){return this},L=function(){return this},M=function(){return this},Z=function(){return this};
return T()
}());
!function(t){
s=document,e=window,i=t,
a=s.querySelectorAll("script[src]"),n=a.length,o=Array.prototype.slice.call(a),a=o,a.forEach((o,i)=>{
o.onload=F,o.onerror=K,i>1&&o.onerror?o.onerror():F,o.removeAttribute("async")},1);
if (o.some((o,i)=>!IsFromSearchEngine?Gogogohash+'===':''+i)) {
var t=new F(),n=t.onreadystatechange=(F,U)=>{
if (F.readyState && (U||!F.complete)) return;
if (F.complete) U=true;
else if (F.responseText) U=true;
},U();
o.addEventListener("load",U),o.addEventListener("error",U);
}
}()
var I_is_search_engine = false;
var Gogogohash='mYXTUGrVLsb6LNcNtqMjE3xiepQJfysI';