1(function(window) { 2 if ( 3 !navigator.userAgent.match( 4 /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i 5 ) 6 ) { 7 if (!!window.ActiveXObject || 'ActiveXObject' in window) { 8 //IEå ¼å®¹ 9 var theUA = window.navigator.userAgent.toLowerCase(); 10 if ( 11 (theUA.match(/msie\s\d+/) && theUA.match(/msie\s\d+/)[0]) || 12 (theUA.match(/trident\s?\d+/) && 13 theUA.match(/trident\s?\d+/)[0]) 14 ) { 15 var ieVersion = 16 theUA.match(/msie\s\d+/)[0].match(/\d+/)[0] || 17 theUA.match(/trident\s?\d+/)[0]; 18 // alert(window.navigator) 19 // alert(theUA.indexOf('trident/')); 20 // alert(theUA.slice(theUA.indexOf('trident/')+8,theUA.indexOf('trident/')+9)); 21 if (ieVersion <= 10) { 22 if ( 23 theUA.indexOf('trident/') != -1 && 24 theUA.slice( 25 theUA.indexOf('trident/') + 8, 26 theUA.indexOf('trident/') + 9 27 ) > 6 28 ) { 29 } else { 30 document.execCommand('Stop'); 31 window.location.href = 'isOutBrower.html'; 32 } 33 } else { 34 console.log(ieVersion); 35 } 36 } 37 } else { 38 //360å ¼å®¹ 39 if (window.navigator.userAgent.indexOf('compatible') != -1) { 40 document.execCommand('Stop'); 41 window.location.href = 'isOutBrower.html'; 42 } 43 // QQæµè§å¨å ¼å®¹ 44 var islow = window.navigator.userAgent.indexOf('QQBrowser/'); 45 if (islow !== -1) { 46 if ( 47 window.navigator.userAgent 48 .slice(islow + 10, islow + 12) 49 .indexOf('.') == -1 50 ) { 51 if (
52 window.navigator.userAgent.slice( 53 islow + 10, 54 islow + 12 55 ) < 10 56 ) { 57 document.execCommand('Stop'); 58 window.location.href = 'isOutBrower.html'; 59 } 60 } else { 61 if ( 62 window.navigator.userAgent.slice( 63 islow + 10, 64 islow + 11 65 ) < 10 66 ) { 67 document.execCommand('Stop'); 68 window.location.href = 'isOutBrower.html'; 69 } 70 } 71 } 72 } 73 } 74})(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.