您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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.
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/432691/1039908/A%20library%20dedicated%20to%20anti-debugging%20of%20js%20%28non-original%29.js
- (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)
- };
- })()