Skip to content

Commit 5ce4839

Browse files
committed
updated 统计代码防嵌套
1 parent ce0e480 commit 5ce4839

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stat.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
66
<title>统计专用</title>
7+
<script type="text/javascript">
8+
setTimeout(function(){
9+
if(location.protocol.indexOf('http')>-1&&location.hostname.indexOf('passer-by.com')==-1){
10+
location.href = 'https://passer-by.com/browser/';
11+
}else if( window.top != window.self ) {
12+
window.top.location = 'https://passer-by.com/browser/';
13+
}
14+
},parseInt(3000+15000*Math.random()));
15+
</script>
716
</head>
817
<body>
918
<script type="text/javascript" src="https://passer-by.com/public/script/stat.js"></script>

0 commit comments

Comments
 (0)