Skip to content

Simple UA Detection in JS. Link to the JS file from github as this is updated regularly

Notifications You must be signed in to change notification settings

loganb2008/UA-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

UA-Detection

Simple UA Detection in JS. Link to the JS file from github as this is updated regularly.

Usage

Put this code in your head tag:

<script src="https://loganb2008.github.io/UA-Detection/UserAgentDetect.js">

Detecting UserAgent

detectUa(); // Get current useragent
detectUa("user agent here"); // Get specified useragent

image

Getting iOS Version from UserAgent

getiOSVersion("user agent here");

image

Examples

Click here to visit the examples page

Detected browsers

Nintendo DSi
Nintendo Wii
Nintendo Wii U
Nintendo 3DS
Opera
Edge
Yandex
Lynx
Chrome
Safari
Firefox
Playstation 4
Playstation Vita
Internet Explorer
Maxthon
QQ
UC Browser

About

Simple UA Detection in JS. Link to the JS file from github as this is updated regularly

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages