為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Website doesn't want me opening developer tools

  • 10 回覆
  • 1 有這個問題
  • 8 次檢視
  • 最近回覆由 newbie442

more options

First BEFORE going to this website I open developer tools (CTRL SHIFT I)

Then I visit example URL

The video doesn't play and it crashes my browser TAB.

What's going on here how can websites know i'm using devtools and why wasn't this patched 20 years ago?

Thank you.

First BEFORE going to this website I open developer tools (CTRL SHIFT I) Then I visit [https://ww4.0123movie.net/movie/tpb-afk-the-pirate-bay-away-from-keyboard-16353.html?play=1 example URL] The video doesn't play and it crashes my browser TAB. What's going on here how can websites know i'm using devtools and why wasn't this patched 20 years ago? Thank you.

所有回覆 (10)

more options

Does it make any difference if you undock the Developer Tools so they are in a separate floating window instead of taking up space in the tab?

more options

The website inserts debugger statements in their JavaScript code.

You can try to disable all breakpoints in the debuger.

more options

cor-el said

The website inserts debugger statements in their JavaScript code. You can try to disable all breakpoints in the debuger.

I dont understand that. I guess I'm stuck with this.

more options

Hi newbie442, I think the suggestion is to switch to the Debugger tool and click the button I've marked in the attached screenshot and see whether the site can still detect that the DevTools are open.

more options

@jscher2000 Tried it now and does not seem to affect anything. Please go ahead jscher and try the website too.

more options

And btw there are thousands of websites now taking advantage of this anti-devtools trick, i just picked 1 website of many.

more options

I don't visit sites like that for security reasons.

Did undocking the tools make any difference? If the page is detecting a discrepancy between the window size and the viewable area, that might help. Click the ••• button toward the right end of the DevTools toolbar to make the change.

more options

Yes I tried that 12 hours ago, forgot to mention, not working.

由 newbie442 於 修改

more options

Note that reloading the page with the dubugger window open seems to trigger this debugger statement even with all breakpoints disabled. If I first load the page with the devtools closed and only only open the devtools once loading is finished then it works for me with this website. You need to disable all breakpoints beforehand. That way you can at least use the Inspector.

more options

I want to use “Network Monitor” not inspector