Hacker News new | past | comments | ask | show | jobs | submit login

Well that is poopy. Is there a way I can “stealth” open dev tools on all sites? I like to see network requests in a lot of places, but don’t like to think the server will change their responses based on my local actions.



There are a couple of ways they can try to detect devtools being opened. As the sibling comment implies, the most popular way is to detect a sudden viewport resize, and you can avoid that by ensuring your devtools are set to open in a new window before opening them.

The only other ways I'm aware of are:

- Detecting the keyboard shortcut, ⌘⌥i or equivalent, which you can avoid by using the browser menu, and

- More riskily, evaluating a `debugger` statement and detecting whether evaluation paused. I'm not sure you could do anything about this one, but it would certainly be obvious to you whether it was happening.


In firefox, you can disable `debugger` by deactivating all breakpoints, making `debugger` a noop.

Toggle the thing in the dotted rectangle: https://firefox-source-docs.mozilla.org/devtools-user/debugg...


Make it open in a separate window.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: