Showing results for 
Show  only  | Search instead for 
Did you mean: 

Websites can detect devtools is active

Making moves

A few websites have started including javascript that can detect when devtools are open, thus making it harder to verify their activity among other things.

In most cases it seems that they implement the project `disable-devtool`, which uses the detection methods found here:

An example of a site using this in the wild is

This ability to detect devtools has been opened seems like unintended behaviour and counter to the user's best interest, as websites can change their behaviour to avoid detection of unwanted activity or even just prevent inspection altogether.

My hope is that preventing detection is a relatively simple matter and that the Firefox team decides to fix this behaviour.



The developers did address at least one annoying thing some sites do, which is to run a debugger statement that locks up the devtools when they are opened. To bypass that, in about:config, set the following preference to false:


Regarding that library on Github, I saw a thread for how to prevent it from loading over on Reddit:

But more generally, it's difficult to block standard script commands that can be used for arguably abusive purposes.