Agent
Parse user agent data into reliable methods for detecting the users browser, device type, operating system, platform, etc...
This is an extension to Jens Segers Agent utility. Refer to their documentation for all available methods.
Some additional methods bespoke to this plugin include:
Check to determine the users browser and version type is a match.
Redirect users to a new template/url if the user agent doesn't match any of the check criteria.
setAttributesToHTML will define the users device name, version and device type directly to the
<html>
element.agent.min.js is a small IIFE script file (< 0.7k) that can be injected directly into the
<head>
to expose the user agents device name, version and device type directly to the window scope.
- Installation Instructions
To install this plugin, copy the command above to your terminal.
- Active Installs
- 416
- License
- MIT
- Last release
- August 21, 2022
- Activity (30 days)
- 0Closed Issues0Open Issues0Merged PRs0Open PRs