Email or username:

Password:

Forgot your password?
Nikita

Fuck websites that do this.

P.S. I didn't have DevTools open, I just have an ad blocker.

Warning message on a white website background. The warning says: ‘Unwanted Dev Tools Console detected! Please close it and refresh’.
8 comments | Expand all CWs
Floppy 💾

@kytta Curious how DevTools detection works. (And consequently how it can be broken.)

Nikita

@floppy Apparently it's this script: github.com/sindresorhus/devtoo

From README: ‘This package has a lot of flaws. It used to work better, but browsers changed, and the detection now has too many false-positives.’

Floppy 💾

@kytta Iteresting, thanks! I'll have a look!

Nikita

@floppy TL;DR: it tries to detect it using a combination of the User-Agent, screen density and orientation. For me, it apparently thinks I am using Firefox Mobile xD

Floppy 💾

@kytta Just had a look. Didn't expect it to be that simple. There are so many ways to mess with it. :) Some of which by use of DevTools, haha.

Floppy 💾

@kytta Also, what if DevTools are opened in a separate window? Then the threshold-criteria in the conditional few lines afterwards will break.

github.com/sindresorhus/devtoo

Don't know what to make of this. :)

birnim

@kytta I know this is mean, but I feel the need to laugh at the idea that to have a shitty user experience with a web site, one doesn't always need to use it over Tor (like I do) 😂

r҉ustic cy͠be̸rpu̵nk🤠🤖

@kytta If any site does this, the domain gets blocked permanently

Go Up