3 ms·
Blocking a user agent? Oh no, whatever shall we do? Thankfully, we can still just change it, though I suppose a really insidious web site could use feature ch
by mises 7y ago
Blocking a user agent? Oh no, whatever shall we do? Thankfully, we can still just change it, though I suppose a really insidious web site could use feature checks.
- ryan-c 7y agoA trivial way to check for Firefox in javascript: !!{}.toSource There are many others, of course.
- ryannevius 7y agoFor others who may be wondering, this is because `Boolean.prototype.toSource()` is a non-standard method that is only supported by Firefox: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toSource https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- fiblye 7y agoI mean, those annoying “join our newsletter”, “quit using adblockers”, and “allow us access to cookies and all your data or else” popovers went from nonexistent to everywhere in the span of 2 weeks. Once one major site does it, they all will.