别人的js 自行研究吧。

<script>
    console.log("%c%c请关闭调试工具即可解除刷新效果%c", "line-height:28px;", "line-height:28px;padding:4px;background:#222;color:#fff;font-size:16px;margin-right:15px", "color:#008000;line-height:28px;font-size:16px;");
    function fuckyou() {
        window.close();
        window.location.replace("http://417.red");
    }
    function ck() {
        if (console.clear) { console.clear() };
        if (typeof console.profiles == "object") {
            return console.profiles.length > 0;
        }
    }
    function hehe() {
        if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || (typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) {
            fuckyou();
        }
        if (typeof console.profiles == "object" && console.profiles.length > 0) {
            fuckyou();
        }
    }
    hehe();
    window.onresize = function () {
        if ((window.outerHeight - window.innerHeight) > 200)
            fuckyou();
    }
    window.onkeydown = window.onkeyup = window.onkeypress = function (event) {
        if (event.keyCode = 123) {
            event.preventDefault();
            window.event.returnValue = false;
        }
    }
    var threshold = 160;
    window.setInterval(function () {
        if (window.outerWidth - window.innerWidth > threshold ||
            window.outerHeight - window.innerHeight > threshold) {
            window.location.reload();
        }
    }, 1e3);
</script>

最后更新于 2022-07-18