Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gravitydepartment/user-agent
Simple methods to test the browser's user agent string.
https://github.com/gravitydepartment/user-agent
browser javascript user-agent
Last synced: 30 days ago
JSON representation
Simple methods to test the browser's user agent string.
- Host: GitHub
- URL: https://github.com/gravitydepartment/user-agent
- Owner: gravitydepartment
- Created: 2017-02-18T01:42:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-11T18:48:41.000Z (almost 4 years ago)
- Last Synced: 2024-08-03T22:23:16.066Z (4 months ago)
- Topics: browser, javascript, user-agent
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - gravitydepartment/user-agent - Simple methods to test the browser's user agent string. (JavaScript)
README
[![Gravity Department](https://cdn.gravitydept.com/github/repo-header.png)](https://gravitydept.com/)
# GravDept User Agent
Simple methods to test the browser's user agent string.
## Dependencies
- None
## Usage
Include the script in your page:
``` html
```
And call the methods you need:
``` js
if (userAgent.isOldIos() || userAgent.isOldAndroid()) {
// Warn users their browser is outdated.
}
```