ua.js

A very small user-agent (browser) and device detection library.

Website:https://github.com/g13n/ua.js

UA.js

ua.js is a very small library to detect user-agents (browsers) and devices. The library has methods to detect specific browsers (major ones) and also support for detecting class of browsers (like Gecko, WebKit, etc.)

Usage

if (UA.isOpera()) {
    // Opera browser
}
if (UA.isTV()) {
    // I'm running on a TV!
}