浏览器控制台防检测

根据 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!

发表回复

登录(不可用)以发表回复。

QingJ © 2025

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