Opera Mini is a strange little browser. There are Android, iOS, and Windows version, but the biggest market is the version that runs on low end feature phones. Opera claims that it “works on almost any phone” and in my experience that’s certainly true.
Feature testing versus device detection
99% of the time, you should use feature detection to determine whether a browser supports a particular feature or API. Yet sometimes browser sniffing is the right choice.
However, Opera Mini exposes a
window.operamini object. Although this is still basically the same as device detection, it feels less horrible.
I’m still not sure, to be honest, but I’m going to stick with my mustard cutting for now. I quite like the combo of
querySelector: that gives me a set of fairly modern, fairly capable, browsers as a first pass.