Browser detection and a little something extra.
result = {
browser: {
ieVer: 0,
ieMode: 0,
ie: false,
edge: false,
firefox: false,
chrome: false,
safari: false,
operaPresto: false,
androidChromeWebView: false,
androidWebkit: false,
blackberryMidp: false,
blackberryWebkit: false,
nintendoOpera: false,
nintendoBrowser: false,
psBrowser: false,
chromeVer: 0,
webkitVer: 0,
unknownWebkit: false,
unknown: false
},
platform: {
windows: false,
mac: false,
linux: false,
android: false,
ios: false,
blackberry: false,
firefoxOs: false,
iphone: false,
ipad: false,
ipod: false,
nintendoDsi: false,
nintendo3ds: false,
newNintendo3ds: false,
nintendoWii: false,
nintendoWiiU: false,
ps4: false,
ps3: false,
psp: false,
xbox: false,
unknown: false
},
uaString: {
mobile: false,
phone: false,
tablet: false
}
};
MIT