Sniffer.js

If you can’t detect it, you should sniff it!

Sniffer is a browser/engine/os/device detection tool.

— Why u no feature-detect??/?////

I feature-detect like a boss. But when I can’t, I use dirty hacks to help me out:

  • Some features are just undetectable. For instance, overflow: scroll behavior on mobile devices is one of them. Use da Sniffer!
  • You have to sniff false-positives & false-negatives (some of my mobile browser tests there).
  • Do you want to support those two idiots opening your site on Kindle? I do! Make ’em happy with contrast colors and disabled animations.

Live example