-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathtracker.js
27 lines (22 loc) · 870 Bytes
/
tracker.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* Tracker Cacher
* @version 0.9
* @author dron
* @create 2013-04-16
*/
void function( version, script, analyzer, parent ){
if( window != window.parent )
return ;
if( typeof __trackerCollector__ != "undefined" )
return window.alert( "您正在使用 Tracker 客户端版!" );
if( /msie/i.test( navigator.userAgent ) )
return window.alert( "您使用的浏览器相对传统,建议换 chrome/firefox/safari 试试!" );
version = "1.9.1" + Math.random();
analyzer = "http://www.ucren.com/tracker/cache.php?file=./tracker-analyzer.js&version=" + version;
script = document.createElement( "script" );
script.type = "text/javascript";
script.charset = "utf-8";
script.src = analyzer;
parent = document.head || document.body || document.documentElement;
parent.appendChild( script );
}();