Answer the question
In order to leave comments, you need to log in
How to find out if devtools is open via js?
How to know via js when devtools opens?
solutions from here could not be implemented, as I understand they are no longer relevant
https://stackoverflow.com/questions/7798748/find-o...
solution with checking the window size, not ideal
https://stackoverflow.com/questions/ 40153206/detec... I
noticed that Facebook is somehow following this
https://prnt.sc/ifgmyi
what other options are there?
Answer the question
In order to leave comments, you need to log in
https://github.com/sindresorhus/devtools-detect
the solution there is based on screen sizes, but after poking the demo for a couple of minutes, I did not find any shortcomings
Facebook doesn't follow. It's just that when you press f12, the inscriptions are displayed in the console
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question