index.js 1.0 KB

1
  1. "use strict";var url=window.location.search,theRequest=new Object;if(-1!=url.indexOf("?"))for(var str=url.substr(1),strs=str.split("&"),i=0;i<strs.length;i++)theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);var autoJump=theRequest.autoJump,ua=window.navigator.userAgent,isAndroid=-1<ua.indexOf("Android")||-1<ua.indexOf("Linux");isAndroid?(document.querySelectorAll(".Android").forEach(function(e){e.style.display="block"}),document.querySelectorAll(".Ios").forEach(function(e){e.style.display="none"}),"true"==autoJump&&document.querySelectorAll(".Android").forEach(function(e){e.click()})):(document.querySelectorAll(".Android").forEach(function(e){e.style.display="none"}),document.querySelectorAll(".Ios").forEach(function(e){e.style.display="block"}),"true"==autoJump&&document.querySelectorAll(".Ios").forEach(function(e){e.click()})),window.onload=function(){!!window.navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?document.querySelector(".Ios").click():document.querySelector(".Android").click()};