浏览器控制台防检测

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

< Feedback on 浏览器控制台防检测

Review: Good - script works

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

PYUDNGAuthor
§
Posted: 2025-04-05
Edited: 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.

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.

§
Posted: 2025-04-07
Edited: 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

PYUDNGAuthor
§
Posted: 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?

PYUDNGAuthor
§
Posted: 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)

§
Posted: 2025-04-07
Edited: 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!

PYUDNGAuthor
§
Posted: 2025-04-07
Edited: 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:)

For sure
I'll check your other works
Kudos!

Post reply

Sign in to post a reply.