1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10//Browser language 11function navigatorLang(){ 12 var type = navigator.appName; 13 if (type == 'Netscape'){ 14 return navigator.language; 15 } else { 16 return navigator.userLanguage; 17 } 18} 19//Browser protocol 20function isProtocol(){ 21 var result = false; 22 if (window.location.protocol == 'http:'){ 23 result = true; 24 } 25 return result; 26} 27//Execute jump 28var userAgents = navigatorLang(); 29var mobileURL = ''; 30if (userAgents.match(/zh-CN/i)){ 31 var isMobile = navigator.userAgent.match(/(ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i); 32 if (isMobile){ 33 var result = window.location.href.match(/^http(s)?:\/\/(otq\.|mww\.|tlh\.|yua\.|srla\.|srcyrl\.|m[0-9]{1,3}\.|.{2}\.)/i); 34 if (result){ 35 if (isProtocol()){ 36 mobileURL = window.location.href.replace('//', 'https://m.'); 37 } else { 38 mobileURL = window.location.href.replace('https://', 'http://m.'); 39 } 40 } else { 41 if (isProtocol()){ 42 mobileURL = window.location.href.replace('https://www.', 'https://m.'); 43 } else { 44 //mobileURL = window.location.href.replace('https://www.', 'http://m.'); 45 //https no www 46 var origin = window.location.origin; 47 var hasWWW = /www/.test(origin); 48 if (!hasWWW) { 49 mobileURL = window.location.href.replace('https://', 'http://m.'); 50 } else { 51 mobileURL = window.location.href.replace('https://www.', 'http://m.'); 52 } 53 } 54 } 55 window.location.href = mobileURL; 56 } 57} 58}
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.