I'm working on a snippet for check if the browser is Firefox/Firefox OS/Firefox for Android. The method for check is the user agent with a little feature detection.
I haven't found a better way with a complete feature detection that cover all the cases.
The gist it's here: https://gist.github.com/Mte90/11087393
Any solution more professional?