A
A
Arthur2018-02-16 10:26:49
JavaScript
Arthur, 2018-02-16 10:26:49

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

2 answer(s)
I
Insayt, 2018-02-16
@Insayt

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

J
JackShcherbakov, 2018-02-16
@JackShcherbakov

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 question

Ask a Question

731 491 924 answers to any question