A library dedicated to anti-debugging of js (non-original)

This is a library for anti-debugging JavaScript, the code of this library must not be used for any illegal purpose. If you decide to use this library, you are responsible for its possible consequences.

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/432691/1039908/A%20library%20dedicated%20to%20anti-debugging%20of%20js%20%28non-original%29.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

(function(){
    //window.eva=eval;
    var debugflag = false;
    
    window.onload=function () {
        if (window.outerWidth - window.innerWidth > 210 ||window.outerHeight - window.innerHeight > 210) {
            try{
                $('#body').html('1检测到非法调试, 请关闭调试终端后刷新本页面重试!<br/>Welcome for People, Not Welcome for Machine!<br/>');
                debugflag = true;
            }catch(e){}
        }
        const handler = setInterval(() => {
            if (window.outerWidth - window.innerWidth > 210 ||window.outerHeight - window.innerHeight > 210) {
                try{
                    document.querySelector('html').innerHTML='2检测到非法调试, 请关闭调试终端后刷新本页面重试!<br/>Welcome for People, Not Welcome for Machine!<br/>';
                    debugflag = true;
                }catch(e){}
            }
            const before = new Date();
            (function() {}
             ["constructor"]("debugger")())
            const after = new Date();
            const cost = after.getTime() - before.getTime();
            if (cost > 50) {
                debugflag = true;
                try{
                    document.write('3检测到非法调试,请关闭调试终端后刷新本页面重试!<br/>Welcome for People, Not Welcome for Machine!<br/>');
                }catch(e){}
            }
        }, 1000)
    };

})()