ARbi - JavaScript library to get browser Info
Basic information about user browser and device (browser name/version, platform, operating system, browser plug-ins, touch/pointer support, device screens size, browser viewport and more) when you need resolve some issue on the client/user site and you do not have enough informations and you do not have time to explain to someone where it all is or you just need quick Info.
Information could by in console or in defined HTML element.
All information are loaded with JavaScript from DOM.
Information categories
Informations are divided to few categories for more readable look up and are based on given browser and device informations.
Datetime
Formated date and time when was info generated.
User-Agent
Whole user agent information string.
Platform
Information about platform and operating system of given device.
Recognized operating systems:
Windows
- Windows 3.11
- Windows 95
- Windows ME
- Windows 98
- Windows CE
- Windows 2000
- Windows XP
- Windows Server 2003
- Windows Vista
- Windows 7
- Windows 8
- Windows 8.1
- Windows 10
- Windows NT 4.0
- Windows Phone
XBox
Android
Open BSD
Sun OS
Google Chrome OS
Linux
iOS (Apple device)
QNX (BlackBerry)
UNIX
BeOS
OS/2 (IBM)
Device
Screen - size of device screen, screen orientation (landscape/portrait), available screen size for application
Touch/Pointer - support touch screen or pointer
Mobile, Tablet - identifier “mobile/mobi” or “tablet”
Browser
Name - name of given browser and its version, listed browsers:
- Firefox (/Firefox Developer Edition)
- Camino
- SeaMonkey
- Safari
- Chrome (/Chrome Canary)
- Opera
- Maxthon
- Seznam.cz
- Yandex.Browser
- Vivaldi
- MxNitro
- Avast SafeZone
- UC Browser
- Konqueror
- Classilla
- Internet Explorer
- Microfoft Edge
- AOL Desktop
- Lunascape
Lang - main and prefered langs
Cookies - enabled/disabled cookies info (no cookies content, yet...)
Engine(s) - web rendering/layout engine
Viewport - viewport of the browser, browser viewport orientation (landscape/portrait), possible viewport size (without scroll, console, ...)
Flash/Shockwave - basic test if supported
Plug-ins - list plug-ins installed in browser (if any)
Using ARbi library
This library has no dependencies just include file (or script) in your code.
Download
Download (.js file)
API
You can call separately data object with browser info:
arbi.info()
- input: no data input
- output: all data see bellow
arbi.datetime()
- input: no data input
- output: formated date time “YYYY-MM-DD hh:mm:ss”
arbi.browser()
- input: no data input
- output:
- name - browser name
- ver - whole version number
- vern - main version number
- lang - primary lang
- langs - array of prefered langs
- langss - string of prefered langs separated by comma
- is_flash - is flash/shockwave support
- plugins - array of installed plug-ins
- plgstr - string version on installed plug-ins list
arbi.device()
- input: no data input
- output:
- screen - all screen data (“arbi.screen()”)
- mobile - mobile identifier
- tablet - tablet identifier
- touchdevice - touch/pointer support
arbi.screen()
- input: no data input
- output:
- scr_avail_height - device screen height size available for application
- scr_avail_width - device screen width size available for application
- scr_colordepth - device screen color depth
- scr_height - device screen height size
- scr_width - device screen width size
- screen - device screen string size info ("#width#x#height#x#colordepth#")
- screen_avail - device screen string size available info for application ("#width#x#height#")
- screen_orient - screen orientation “landscape/portrait"
arbi.viewport()
- input: no data input
- output:
- viewport - current browser viewport (“#width#x#height#”)
- vp_width - current browser viewport width
- vp_height - current browser viewport height
- viewport_orient - browser viewport orientation “landscape/portrait”
- viewport_avail - browser viewport available, etc. without conssole (“#width#x#height#”)
- vp_avail_width - browser viewport width available
- vp_avail_height - browser viewport height available
Licencing
MIT licence or Apache licence 2
- basically free for use
- leave note of copyright would be appreciated, thanks
release notes
1.2.1 [2016-12-04]
- added browser - Thunderbird
- cookies info - are enabled/disabled
- browser engine detection and naming update
1.2 [2016-02-28]
- Added web rendering/layout engine info/detection and small typo fix.
1.1 [2016-02-26]
- Fix code for MS Edge (IE) compatibility.
1.0 - initial version [2016-02-17]
- First public released version of library.
Preview