Anti devtools-detector

Anti https://github.com/AEPKILL/devtools-detector

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
PYUDNG
Daily installs
1
Total installs
458
Ratings
1 0 0
Version
0.1
Created
2022-12-04
Updated
2022-12-04
Size
2.78 KB
License
GPL-v3
Applies to

For developers.

目前笔者更推荐使用 操作更简单、兼容性更好 的新版脚本浏览器控制台防检测;此脚本不再维护,仅保留源代码以供历史用户查询

针对一个应用较为广泛的devtools-detector进行了逆向破解,使其不能启动。
原理为hook了Object.prototype.launch,使得devtools-detector无法赋值自己的launch方法。
当devtools-detector试图访问launch方法启动的时候,就会在浏览器控制台得到一只超可爱的光光哦~*
*: 你也可以在脚本代码里更改const LOG_KAWAII_HIKARI = true;const LOG_KAWAII_HIKARI = false;,即可不再在控制台绘制字符画,改为在控制台简单输出一条成功信息

用法:在Tampermonkey用户匹配里添加含有devtools-detector的网址,或者把网址通过@match规则添加到脚本头部即可。
在目标网页上打开浏览器控制台,看到一只超可爱的光光或者一则成功信息(如下图),即代表成功bypass了devtools-detector。



你可以在devtools-detector官方测试页面测试这个脚本的效果。

PS:如何在控制台画光光? ==> Kawaii hikari chan for anti-devtools-detector