{"repo":"WhichBrowser/Parser-JavaScript","free":true,"listed":false,"github":"https://github.com/WhichBrowser/Parser-JavaScript","clone":"git clone https://github.com/WhichBrowser/Parser-JavaScript.git","description":"Browser sniffing gone too far — A useragent parser library for JavaScript","language":"JavaScript","stars":103,"topics":["whichbrowser","user-agent","rendering-engine","webview","bot","detection","gaming","ua","parser","parsing"],"license":"MIT","category":"workflow-automation","readme_excerpt":"This is an extremely complicated and almost completely useless browser sniffing library written in JavaScript. Useless because you shouldn't use browser sniffing. So stop right now and go read something about feature detecting instead. I'm serious. Go away. You'll thank me later. --- If you are looking for the PHP version of WhichBrowser, please go to the WhichBrowser/Parser-PHP project. If you are looking for the server written in PHP that provides a Javascript API for the browser, please go to the WhichBrowser/Server project. --- But why almost completely useless and not completely useless? Well, there is always an exception to the rule. There are valid reasons to do browser sniffing: to improve the user experience or to gather intelligence about which browsers are used on your website. The original author website is html5test.com and he wanted to know which score belongs to which browser. And to do that you need a browser sniffing library. Why is it extremely complicated? Because everybody lies. Seriously, there is not a single browser that is completely truthful. Almost all browsers say they are Netscape 5 and almost all WebKit browsers say they are based on Gecko. Even Internet Explorer 11 now no longer claims to be IE at all, but instead an unnamed browser that is like Gecko. And it gets worse. That is why it is complicated. What kind of information does it give? You get a nice object which has information about the browser, rendering engine, os and device. It gives you","default_branch":null,"files":null,"tree":[],"storefront":"/r/WhichBrowser","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/WhichBrowser/Parser-JavaScript/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}