浏览器控制台防检测

根据 https://github.com/AEPKILL/devtools-detector 的检测方法进行了一个逆向反检测...需要在哪些网站上运行,自己添加到脚本编辑器-设置-用户包括里面去

< 脚本 浏览器控制台防检测 的反馈

评价:好评 - 脚本运行良好

§
发布于:2025-04-04

Hi
On a website youtv.ua they apperantly uses some different method of devtools detection as the script doesn't even seen as running

PYUDNG作者
§
发布于:2025-04-05
编辑于:2025-04-05

Thanks for your report.

I just tested this site and found it working just well (screenshot)

Did you added youtv.ua to script's @match / @include in Tampermonkey/Violentmonkey?
It is required to add sites into @match / @include list manually.

§
发布于:2025-04-07

Hello
Sorry for the late reply.
Yes, i've both added the "youtv.ua" to scrpt's @match and @include in Tampermonkey + enabled Userscript API Dynamic in Tampermonkey settings.
Website protection still kicks in upon opening dev console.

§
发布于:2025-04-07
编辑于:2025-04-07

to be precise, at the beginning i didn't add website to the list and that's exactly why script didn't even start
but after following the instructions, now it starts but the protection still not bypassed

PYUDNG作者
§
发布于:2025-04-07

I see. Which browser are you currently using? There's a known detection I've not bypassed yet specifically for firefox-based browsers.
By the way, are you using the built-in devtools or some third-party developer tools like eruda?

PYUDNG作者
§
发布于:2025-04-07

I think I found it.

youtv.ua detects devtools in a method (refer to the image attachment for understanding):

  1. measures the outer width of the browser window
  2. measures the inner width of the browser window
  3. Checks the difference between two widths
  4. If the difference goes too big, youtv.ua considers the devtools as opened
  5. same detection strategy applies for window height

So, to bypass this, change the devtools placement to a dedicated window instead of docking in one side of the window. (Refer to the second image attacgment for instructions)

§
发布于:2025-04-07
编辑于:2025-04-07

Browser is Chrome.
Using devtools in a separate window really helps. Well, at least they were kinda creative about blocking it, gotta give them some credit here haha.
Thank you!

PYUDNG作者
§
发布于:2025-04-07
编辑于:2025-04-07

You're welcome. Have a nice day debugging LOL.
Besides, leaving a good rating for this script would help me a lot:)

§
发布于:2025-04-07

For sure
I'll check your other works
Kudos!

§
发布于:2025-09-09

By curiosity, I tested your script on https://youtv.ua/:
After following your config for the script it seems not working.
i Using devtools in a separate window.
I see your script active, but can't open devtools even if i use F12.

Seems they do a more robust devtools detector?

Note:
I tested too your others test links.
These one not need any userscripts to open devtools (sometime need F12 to open it):
https://www.fufugal.com/
Disable web developer tools with one line
devtools status: open

PYUDNG作者
§
发布于:2025-09-09

By curiosity, I tested your script on https://youtv.ua/:
After following your config for the script it seems not working.
i Using devtools in a separate window.
I see your script active, but can't open devtools even if i use F12.

Seems they do a more robust devtools detector?

They also hooked F12 hotkey lol, you can still open devtools from ... > More Tools > Developer Tools https://imgur.com/a/sSuELeP

Note:
I tested too your others test links.
These one not need any userscripts to open devtools (sometime need F12 to open it):
https://www.fufugal.com/

This website jumps to xygalgame.com if they detected devtools. Enabling script prevents this behaviour.

Disable web developer tools with one line

This site should be not able to open devtools, it will crash the tab after detected devtools. Enabling script prevents it from crashing tab.

devtools status: open

This is a demo page to demonstrate detector. Enabling script should make it unable to detect devtools status as opened

Is script broken on these pages?

§
发布于:2025-09-09
编辑于:2025-09-09
A - devtools status: open

This is a demo page to demonstrate detector. Enabling script should make it unable to detect devtools status as opened

Is script broken on these pages?

This one work as expected:
Without your script, it see if devtool is opened.
and show in is title:
"devtools status: open"

B - Disable web developer tools with one line

This site should be not able to open devtools, it will crash the tab after detected devtools.
Enabling script prevents it from crashing tab.

For this one i don't see any difference with or without you script....

Without script :
16:23:52,458 Uncaught ReferenceError: DisableDevtool is not defined
https://theajack.github.io/disable-devtool/:131
disable-devtool:131:71
https://theajack.github.io/disable-devtool/:131

With script:
16:24:42,844 [Anti-détection de la console du navigateur (better) by PY-DNG - TEST - 浏览器控制台防检测] 已拦截console.clear以防止控制台被高频循环清除
当console.clear距离上次调用的时间间隔小于0.75秒时,将不执行清除
同时,页面加载的前5秒也不会执行清除
需要注意的是,当将浏览器/标签页切换到后台时,循环清除任务可能会被浏览器放慢,从而绕过高频清除限制

您也可通过手动开启 "彻底禁用console.clear" 功能彻底禁止console.clear清除控制台
当前 "彻底禁用console.clear" 功能未开启 Anti-détection-de-la-console-du-navigateur-better-by-PY-DNG-TEST-浏览器控制台防检测.user.js:1324:28
16:24:42,848 Échec du chargement pour l’élément

§
发布于:2025-09-09
C- https://www.fufugal.com/

This website jumps to xygalgame.com if they detected devtools.
Enabling script prevents this behaviour.

With or Without the same:
no redirection....

Maybe because i use UblockOrigin?

PYUDNG作者
§
发布于:2025-09-10
编辑于:2025-09-10

B - Disable web developer tools with one line

For this one i don't see any difference with or without you script....
Without script :
16:23:52,458 Uncaught ReferenceError: DisableDevtool is not defined

Looks like the detector itself isn't working right — maybe it's broken or it didn't even load properly.

C- https://www.fufugal.com/

no redirection....

Maybe because i use UblockOrigin?

I can't say why the website is not detecting devtools on your browser, maybe the site works different for users in different countries or regions in the world, or the detector just cannot work well on your browser ...

Well, technically, Website C is using the exact same detector as Website A. So it is expected to behave pretty much the same way on both sites. But since the detector can’t pick up devtools on your end, you probably don’t need the script (to bypass detection) anyway XD

§
发布于:2025-09-10

Thank

so, wait and see
:-)

发布留言

登录(不可用)以发布留言。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址