Compare commits

...

691 Commits

Author SHA1 Message Date
Faisal Salman
67005e3494 Update patch version to 1.0.33 as a mirror of 0.7.33 2023-01-22 22:31:03 +07:00
Faisal Salman
f2d0db001d Bump version 0.7.33 2023-01-22 22:26:12 +07:00
Faisal Salman
a6140a17dd Remove unsafe regex in trim() function
`trim()` function contains a regular expression that is vulnerable to ReDoS but was uncaught by `safe-regex` module.
2023-01-22 22:19:45 +07:00
Faisal Salman
a886604935 Fix #605 - Identify Macintosh as Apple device 2022-12-06 09:53:54 +07:00
Faisal Salman
b814bcd791 Merge pull request #606 from rileyjshaw/patch-1
Fix documentation
2022-12-06 09:36:29 +07:00
Riley Shaw
7f71024161 Fix documentation
`readme.md` refers to a `parser.getResults` function, which does not exist. This PR corrects the function name to `getResult`.
2022-10-26 13:17:33 -04:00
Faisal Salman
c239ac5167 Merge pull request #604 from obecerra3/master
Add new browser: Cobalt
2022-10-23 17:36:19 +07:00
Oscar Becerra
8d3c2d327c Add new browser: Cobalt 2022-10-17 14:03:53 -07:00
Faisal Salman
a2b2e805fa Update patch version to 1.0.32 as a mirror of 0.7.32 2022-10-15 16:27:20 +07:00
Faisal Salman
d11fc47dc9 Bump version 0.7.32 2022-10-15 16:15:14 +07:00
Faisal Salman
b490110109 Merge branch 'develop' of github.com:faisalman/ua-parser-js 2022-10-15 16:06:28 +07:00
Faisal Salman
cb5da5ea4b Merge pull request #600 from moekm/develop
Improved documentation README.md
2022-10-15 11:35:42 +07:00
Mok
b2d685dd9c improved documentation 2022-10-09 15:09:25 +03:00
Faisal Salman
8d21e34201 Merge pull request #598 from kNoAPP/knoapp-tab-s8
Fix #596 - Detect Galaxy Tab S8 as tablet
2022-09-27 09:08:00 +07:00
kNoAPP
48d930f0f1 Add test case 2022-09-20 12:01:17 -07:00
kNoAPP
55b5b40c7d Fix #596 - Detect Galaxy Tab S8 as tablet 2022-09-20 11:56:24 -07:00
Faisal Salman
d141915d45 Merge branch 'develop' 2022-09-18 16:37:29 +07:00
Faisal Salman
8483ac09b3 Refine small redundancy 2022-09-18 16:37:13 +07:00
Faisal Salman
896bdd04e4 Merge branch 'master' of github.com:faisalman/ua-parser-js 2022-09-18 16:29:57 +07:00
Faisal Salman
25fff62540 Fix #502 #580 : Add notice for desktop device type 2022-09-18 16:11:36 +07:00
Faisal Salman
ea04d018bb Merge pull request #589 from choo737/master
fixed sony bravia smart tv, added sharp AQUOS TV
2022-09-18 15:54:00 +07:00
Faisal Salman
29b613deee Merge pull request #583 from varunsh-coder/token-perms
ci: add GitHub token permissions for workflow
2022-09-18 15:53:07 +07:00
Faisal Salman
238391a977 Merge pull request #595 from nabetama/master
Safari and Mobile Safari began to include commas in the minor version number
2022-09-18 15:39:43 +07:00
Faisal Salman
384f780a70 Merge pull request #571 from XhmikosR/patch-1
package.json: specify the folders to include
2022-09-18 15:36:10 +07:00
nabetama
75e58525fe Safari and Mobile Safari began to include commas in the minor version numbers. 2022-09-15 23:10:12 +09:00
Jacky Choo
ebb32d1ad9 fixed sony bravia smart tv, added sharp AQUOS TV 2022-07-27 17:41:35 +08:00
Varun Sharma
dea39e1693 ci: add GitHub token permissions for workflow
Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>
2022-07-11 07:45:10 -07:00
Faisal Salman
ca417e25a9 Fix #516 - Add Focus into list of possible browser.name 2022-07-05 00:03:52 +07:00
Faisal Salman
f54d3fadac Fix #513 - Add new browser: DuckDuckGo 2022-07-02 23:06:08 +07:00
Faisal Salman
21fe76742f Fix #532 - Detect Xiaomi Mi TV as smarttv 2022-07-01 01:14:36 +07:00
Faisal Salman
30ac448a0c Increase UA_MAX_LENGTH to 350 2022-07-01 00:39:36 +07:00
Faisal Salman
1e82d7d265 Fix #558 - WeGame mistakenly identified as WeChat 2022-07-01 00:32:10 +07:00
Faisal Salman
a5cdc2975b Fix #565 - Add new OS: HarmonyOS 2022-06-30 23:46:42 +07:00
Faisal Salman
180846b80a Rename 'HuaweiBrowser' to 'Huawei Browser' 2022-06-30 23:39:48 +07:00
Faisal Salman
061a7a6145 Merge pull request #570 from jparismorgan/HuaweiBrowser
Add support for HuaweiBrowser
2022-06-30 23:28:01 +07:00
Faisal Salman
ebebf0acb3 Merge pull request #579 from JBYoshi/linkedin
Add LinkedIn app.
2022-06-21 12:19:44 +07:00
Faisal Salman
15ae12b71d Merge pull request #576 from Dante-dan/patch-1
fix browser-test typo
2022-05-25 18:13:19 +07:00
JBYoshi
4f77fbb441 Add LinkedIn app. 2022-05-24 23:02:01 -05:00
Dante
cd25bc1866 fix browser-test typo 2022-05-03 15:46:27 +08:00
XhmikosR
18a4e5ade2 package.json: specify the folders to include 2022-03-24 08:07:30 +02:00
Paris Morgan
534d577355 update readme 2022-03-15 14:10:22 -07:00
Paris Morgan
fe963b58e5 Add support for HuaweiBrowser 2022-03-15 14:07:03 -07:00
Faisal Salman
6e39c8a553 Merge pull request #568 from jparismorgan/browser100
Add tests for Chrome, Firefox, and Edge browsers with major version 100
2022-02-25 20:41:18 +07:00
Faisal Salman
3d4ec6ef3b Merge pull request #525 from jparismorgan/Huawei
Add Huawei models
2022-02-25 20:37:01 +07:00
Paris Morgan
f02a431000 v100 tests 2022-02-17 12:01:10 -08:00
Paris Morgan
b6bddd8c09 pr feedback 2022-02-17 11:39:01 -08:00
Faisal Salman
a29213960c Fix #561 - Increase UA_MAX_LENGTH to 275 2022-01-28 22:16:51 +07:00
Faisal Salman
f761a89ab2 Fix #562 - Xiaomi Mi CC9 2022-01-13 00:35:56 +07:00
Faisal Salman
7ddb2575bd Fix #533: Detect Sony BRAVIA as SmartTV 2021-12-18 15:13:19 +07:00
Faisal Salman
23ad60ea68 Fix #559: Sony Xperia 1 III misidentified as Acer tablet 2021-12-18 01:31:40 +07:00
Faisal Salman
1bf1c732c7 Bump version 1.0.2 2021-10-27 14:09:19 +07:00
Faisal Salman
97f3368ef0 Bump version 0.7.31 2021-10-27 14:00:19 +07:00
Faisal Salman
b86860e850 Merge pull request #546 from hansott/master
 Use AST to verify whether regexes are safe
2021-10-27 06:27:06 +07:00
Faisal Salman
157af1e2f2 Merge pull request #547 from sunny-mwx/patch-1
Fix enumerize loop to only check its own properties
2021-10-26 17:51:31 +07:00
Faisal Salman
b4cfe1b624 Merge pull request #535 from shimar/fix/534-oppo-reno5-a
Enable to detect OPPO Reno5 A correctly.
2021-10-26 17:25:47 +07:00
Faisal Salman
95fea1cb26 Merge pull request #543 from catboy1006/master
feat: require the use of `===` and `!==`
2021-10-26 17:24:11 +07:00
Hans Ott
30648cef1d Use AST to verify whether regexes are safe 2021-10-26 11:36:19 +02:00
sunny-mwx
10c978eca5 Update ua-parser.js 2021-10-26 17:35:34 +08:00
chenhui9279
fbd2c6853c feat: require the use of === and !== 2021-10-25 16:44:54 +08:00
Faisal Salman
29d5e43342 Securing the 1.x version (issue #536) 2021-10-22 23:25:44 +07:00
Faisal Salman
051aa5d284 Securing the 0.8.x version (issue #536) 2021-10-22 23:23:12 +07:00
Faisal Salman
139fbc321a Securing the 0.7.x version (issue #536) 2021-10-22 23:14:37 +07:00
Ryohei Shima
191fed9127 Enable to detect OPPO Reno5 A correctly. 2021-10-22 12:23:36 +09:00
Faisal Salman
8fe448fddf Merge pull request #528 from jparismorgan/oculus
Add Oculus Quest and Oculus Quest 2, as well as another test for Oculus Browser
2021-10-06 11:14:42 +07:00
Paris Morgan
343d584f8f change to single line regex 2021-10-04 09:06:00 -07:00
Faisal Salman
ef54fd35d6 Merge pull request #526 from jparismorgan/sony
Add Sony Xperia 1ii
2021-09-24 00:22:42 +07:00
Paris Morgan
79535f5d61 cleanup 2021-09-21 15:40:47 -07:00
Paris Morgan
ee743946e8 cleanup 2021-09-21 15:40:04 -07:00
Paris Morgan
f57bd9523d Oculus devices 2021-09-21 15:31:02 -07:00
Paris Morgan
ffc03acd64 Add different oculus browser 2021-09-21 12:31:16 -07:00
Paris Morgan
b542df155a Sony Xperia 1ii 2021-09-21 11:01:28 -07:00
Paris Morgan
15aa73de40 Add Huawei models 2021-09-21 09:15:49 -07:00
Faisal Salman
336ce2b950 Improve regex efficiency when trimming long ua string
https://blog.stevenlevithan.com/archives/faster-trim-javascript
2021-09-17 23:24:42 +07:00
Faisal Salman
20a428c351 Merge pull request #523 from zidingz/patch-1
Create SECURITY.md
2021-09-16 23:09:07 +07:00
Ziding Zhang
47c310e203 Create SECURITY.md
A simple instruction for security researchers.
2021-09-16 16:11:51 +01:00
Faisal Salman
299283c436 Fix #506 - add test for Huawei ART-L29 2021-07-22 20:31:35 +07:00
Faisal Salman
39e8d4af03 Fix #500 Sharp devices misjudged as Huawei devices 2021-06-15 12:49:19 +07:00
Faisal Salman
03c915277a Add new OS: Android-x86, Deepin, elementary OS, GhostBSD, Linspire, Manjaro, Sabayon
User-Agent source: whatismybrowser.com
2021-04-24 23:07:18 +07:00
Faisal Salman
1e7b6d2e8b Improve device detection: LG Android TV 2021-04-24 21:50:18 +07:00
Faisal Salman
e5e13adc81 Improve CPU detection for ARM64 2021-04-24 21:15:16 +07:00
Faisal Salman
837042a3e8 Improve device detection: Huawei, Xiaomi, Realme, LG, OnePlus, ASUS, ZTE, Fairphone 2021-04-22 07:00:28 +07:00
Faisal Salman
7b3aa9fc15 ES3 compat-fix: remove trailing comma 2021-04-18 14:10:56 +07:00
Faisal Salman
8e55e00177 Replace \s with space, saving ~0,3KB 2021-04-16 23:02:11 +07:00
Faisal Salman
ca644313d6 Remove oldEdge map 2021-04-16 12:51:45 +07:00
Faisal Salman
ca83d4c9c3 Refine some OS detection
Source:
- https://www.zytrax.com/tech/web/browser_ids.htm
- https://developers.whatismybrowser.com/useragents/explore/operating_system_name/
2021-04-16 07:11:23 +07:00
Faisal Salman
9bed2b1437 Add new device vendor: Roku
Source: https://github.com/WhichBrowser/Parser-PHP/blob/master/tests/data/television/roku.yaml
2021-04-16 05:17:04 +07:00
Faisal Salman
3792900410 Add new browsers: Obigo, UP.Browser 2021-04-12 14:02:10 +07:00
Faisal Salman
c05e4e837f Add new OS: HP-UX 2021-04-12 13:11:25 +07:00
Faisal Salman
c53a2a1f72 Improve os detection: Windows Mobile without version 2021-04-12 12:55:37 +07:00
Faisal Salman
559ecaacb6 Improve browser detection: Netscape with version 2021-04-12 12:28:24 +07:00
Faisal Salman
f715023f47 Improve device detection: categorize PDA as mobile 2021-04-12 12:24:34 +07:00
Faisal Salman
36b2275add Improve detection rule for Mac on PowerPC 2021-04-12 12:19:01 +07:00
Faisal Salman
75620c7b6c Merge branch 'master' into develop 2021-04-12 12:12:10 +07:00
Faisal Salman
1d3c98a10c Revert breaking fix #279 and release as 0.7.28 2021-04-10 21:39:40 +07:00
Faisal Salman
c39590b673 Test for Firefox UAs, add new browser: Klar, add new OS: Maemo
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox
2021-04-08 23:14:10 +07:00
Faisal Salman
9200e53787 Update readme: use https for demo link 2021-04-08 21:06:52 +07:00
Faisal Salman
6c671dd246 Refactor code: saving bytes towards 15KB minified 2021-04-08 20:44:13 +07:00
Faisal Salman
535f11bd24 Delete redundant code 2021-04-07 21:42:13 +07:00
Faisal Salman
642c0399e8 Fix #492 LG TV WebOS detection 2021-04-06 14:56:23 +07:00
Faisal Salman
3edacddb24 Merge branch 'master' into develop 2021-04-05 23:32:24 +07:00
Faisal Salman
acc0b91ff5 Update contributor list 2021-04-05 23:32:15 +07:00
Faisal Salman
f726dcd1ae Merge branch 'master' into develop 2021-04-05 13:24:46 +07:00
Faisal Salman
383ca587ef More test for tablet devices 2021-04-04 16:32:30 +07:00
Faisal Salman
7c8aa435b2 Minor rearrangement 2021-04-04 14:37:13 +07:00
Faisal Salman
09aa9105dc Add new device & browser: Tesla 2021-04-04 14:12:40 +07:00
Faisal Salman
557cc2198d More test for latest phones with unique form factor (fold/flip/qwerty/swivel) 2021-04-04 13:12:55 +07:00
Faisal Salman
f95aced43b Release as 0.7.27 2021-04-02 18:18:49 +07:00
Faisal Salman
24950f97ae Merge branch 'master' of github.com:faisalman/ua-parser-js into master 2021-04-02 18:15:28 +07:00
Faisal Salman
cb30756f48 Merge pull request #490 from SuperOleg39/fix-set-ua-limit
Add string check to setUA method
2021-04-02 18:15:04 +07:00
o.drapeza
0868e372e0 Add string check to setUA method 2021-04-02 12:52:30 +03:00
Faisal Salman
9d431cfddd Add new device: Fairphone 2021-04-02 10:10:47 +07:00
Faisal Salman
c937400e8e Add new browser: Firefox Reality 2021-04-02 01:00:50 +07:00
Faisal Salman
8bea5c552a Add new Engine & Browser: Flow 2021-04-02 00:15:20 +07:00
Faisal Salman
3843578de9 Small refactor 2021-04-01 23:55:20 +07:00
Faisal Salman
be9a066029 Merge pull request #487 from kueez/kueez-develop
Better tablet detection
2021-03-29 23:53:21 +07:00
sUP
6f2ba7fcd5 Better tablet detection:
- iPad using Facebook browser on some occasions
- More Huawei tablets
- Asus ZenPad Z8s (P00J)
2021-03-29 18:40:41 +03:00
sUP
d72de26ef9 Better tablet detection - Build. 2021-03-29 16:17:18 +03:00
sUP
80fae81eee Better tablet detection:
- Fix lenovo phone / tablet detection
2021-03-29 16:04:00 +03:00
sUP
91fa6dd5cc Better tablet detection:
- Huawei MediaPad M/T
- Galaxy Tab SM-P
- Kindle Fire without Silk
2021-03-29 15:42:44 +03:00
Faisal Salman
a6b0c165c4 Release as 0.7.26 2021-03-27 02:43:24 +07:00
Faisal Salman
999764cf36 Merge branch 'old-edge-fix' into develop 2021-03-27 02:29:18 +07:00
Faisal Salman
0e70fc4044 Add new device.vendor: Realme 2021-03-27 02:21:18 +07:00
Faisal Salman
3b703a6379 Refine device detection with more test cases 2021-03-27 00:45:26 +07:00
Faisal Salman
4f27489ccf Fix regexes that were marked as unsafe by safe-regex module 2021-03-26 21:17:35 +07:00
Faisal Salman
2cfd792d24 Fix #342 - Enforce all regexes to comply with safe-regex as a safeguard against possible ReDoS vulnerability 2021-03-26 19:54:32 +07:00
Faisal Salman
b406b5df2c Merge branch 'refactor-experimental' into develop 2021-03-26 16:38:34 +07:00
Faisal Salman
536b9e8d9d Add new device.vendor: Vivo 2021-03-26 15:54:09 +07:00
Faisal Salman
8d5685771d Refine some detection with more test cases 2021-03-25 23:18:46 +07:00
Faisal Salman
69a568ae49 Casually save some bytes 2021-03-25 15:45:18 +07:00
Faisal Salman
59d947dcab Detect ARMEABI as ARM 2021-03-25 01:56:19 +07:00
Faisal Salman
62cb5a2e54 Add some test cases for Samsung, Huawei, Xiaomi 2021-03-25 01:54:30 +07:00
Faisal Salman
cd61aef07d Add Device: Surface Duo 2021-03-25 00:13:24 +07:00
Faisal Salman
afe62e915d Add new OS: Raspbian 2021-03-25 00:06:12 +07:00
Faisal Salman
ef4eeadcd8 Refine some OS detection 2021-03-25 00:00:30 +07:00
Faisal Salman
3da59cef3d Release as 0.7.25 2021-03-24 15:51:45 +07:00
Faisal Salman
a0b40be04f Simplify Huawei detection 2021-03-24 15:37:20 +07:00
Faisal Salman
73fb12b379 Add Electron 2021-03-24 02:15:50 +07:00
Faisal Salman
94d3550844 Fix #209 Add CHANGELOG 2021-03-24 01:10:51 +07:00
Faisal Salman
14e7dd3f86 Fix #448 Add AT&T & Vodafone devices 2021-03-24 00:44:14 +07:00
Faisal Salman
dff9746527 Fix #279 Remap old Edge versions <= 44 as suggested by @mikemaccana @callaginn 2021-03-24 00:09:49 +07:00
Faisal Salman
effd766e3b Fix #422 Add ARMHF in CPU Arch detection 2021-03-23 23:37:43 +07:00
Faisal Salman
4d94c6b3e3 Add CDN links & insert npm fund 2021-03-23 22:14:23 +07:00
Faisal Salman
daeb118543 Move documentation upwards and..mAkE tHe LoG0 BiG99eR!!1!1! 2021-03-23 20:31:09 +07:00
Faisal Salman
c47f458586 Merge branch 'refactor-experimental' of github.com:faisalman/ua-parser-js into refactor-experimental 2021-03-23 20:12:46 +07:00
Faisal Salman
8c2b84fc31 Enforce maximum limit to user-agent input 2021-03-23 20:10:09 +07:00
Faisal Salman
1667f5f2b2 Update README contents & structures 2021-03-21 03:40:33 +07:00
Faisal Salman
e1905168a8 Fix #438 Add Zebra devices 2021-03-20 07:54:31 +07:00
Faisal Salman
10475761cf Action doesn't work, should be under /.github/workflows folder perhaps 2021-03-19 19:29:28 +07:00
Faisal Salman
db381cad92 Change mocha reporter for CI 2021-03-19 19:21:18 +07:00
Faisal Salman
bb16473fac Fix #427 - Trying GitHub Actions 2021-03-19 19:09:24 +07:00
Faisal Salman
fe5ca1de96 Fix #401 Rearrange the order of regexes to improve hit-rate performance 2021-03-19 14:54:51 +07:00
Faisal Salman
ebccc29d97 Casually save some bytes 2021-03-18 18:42:01 +07:00
Faisal Salman
1a8cd671ab Fix #449 Lenovo Tablet 2021-03-18 02:05:57 +07:00
Faisal Salman
d1ba5f5914 Fix #430 Playstation 5 2021-03-18 00:19:41 +07:00
Faisal Salman
e402a6a55c Latest Xperia lineup 2021-03-17 10:58:50 +07:00
Faisal Salman
e612b44ecd Fix #470 Identify Android TV as SmartTV 2021-03-14 22:47:23 +07:00
Faisal Salman
fc1d3b0719 Fix #475 Nokia version incomplete 2021-03-14 22:22:04 +07:00
Faisal Salman
c626c01a5e Merge branch 'develop' of github.com:faisalman/ua-parser-js into develop 2021-03-14 19:07:48 +07:00
Faisal Salman
d1ea2f0dc4 Fix #433 #434 Huawei devices 2021-03-14 19:07:28 +07:00
Faisal Salman
70a586d4b1 Merge pull request #483 from annez/check-typeof-window
Move to check typeof for window for different envs
2021-03-14 01:08:33 +07:00
Faisal Salman
9da55e9791 Merge branch 'master' of github.com:faisalman/ua-parser-js 2021-03-13 21:10:56 +07:00
Faisal Salman
6c44b3fcc5 Merge branch 'develop' of github.com:faisalman/ua-parser-js into develop 2021-03-13 21:04:46 +07:00
Faisal Salman
b1f34c1620 Merge pull request #477 from crcong/fixWechatDesktop
FIX: Wechat Desktop for Windows compatible with new version
2021-03-13 21:00:59 +07:00
ruicong
1cfe34f517 FIX: new wechat desktop's unsafe regex 2021-03-13 14:26:42 +08:00
Faisal Salman
6c87e069ec Fix #407 ZTE Nubia misidentified as Nextbook Tablet 2021-03-13 11:41:56 +07:00
Faisal Salman
d658ef364b Fix #339 Add Weibo 2021-03-13 09:34:22 +07:00
Faisal Salman
f85dc8cb9a Fix #366 Amazon Alexa Echo Show 2021-03-13 09:22:56 +07:00
Faisal Salman
cdac86782b Add Nintendo Switch 2021-03-13 08:47:06 +07:00
Faisal Salman
46615e70db Fix #454 Improve Samsung detection 2021-03-12 19:20:17 +07:00
Faisal Salman
6aa3ff1374 Fix #450 Sony Xperia Z2 Tablet 2021-03-12 17:40:07 +07:00
Faisal Salman
dce862364b Add funding support links 2021-03-10 00:55:26 +07:00
Faisal Salman
ec5a864abb Fix #367 #425 Detect Instagram in-app browser 2021-03-09 02:32:10 +07:00
Faisal Salman
d78a2e0361 Fix #413 Bug resulting Motorola model O 2021-03-09 02:13:31 +07:00
David Annez
f661da9d47 Move to check typeof for window for different envs 2021-02-26 10:14:32 +00:00
Faisal Salman
9999815ac8 Update version number to 0.7.24 2021-02-12 10:01:25 +07:00
Faisal Salman
809439e20e Fix potential ReDoS vulnerability as reported by Doyensec 2021-02-12 09:53:26 +07:00
Faisal Salman
5b83893476 Merge pull request #479 from joeyparrish/develop
fix: Xbox OS detection
2021-02-10 15:41:56 +07:00
Joey Parrish
9d154cc41b chore: Update build 2021-02-09 12:42:27 -08:00
Joey Parrish
7679003f87 fix: Xbox OS detection
It is better to detect Xbox devices as having the OS "Xbox".
Otherwise, they are detected as "Windows 10", making it difficult to
see the difference between Legacy Edge on Windows and the Xbox
browser.  (Karma (https://github.com/karma-runner/karma) only shows
the browser & OS on the status line.)

With this change, Xbox 360, Xbox One, Xbox X/S, and Xbox Series X/S
are all detected as OS "Xbox" with version "360", "One", etc.
2021-02-09 12:24:17 -08:00
ruicong
cd1bfd87c5 FIX: Wechat Desktop for Windows compatible with new version 2021-01-18 17:11:53 +08:00
Faisal Salman
45bf76a0fe Merge pull request #474 from dust-off/master
Fallback for Mobile
2021-01-08 14:41:15 +07:00
Dustin
f543c5ad72 facebook movile app with no browser info 2021-01-07 09:41:20 -08:00
Faisal Salman
89a72c27a7 Merge pull request #471 from jishidaaaaa/fix-firetv-detection
Fix Detection Rule For Amazon Fire TV
2021-01-05 23:46:45 +07:00
Faisal Salman
314131d003 Merge pull request #472 from GeraldHost/master
Update readme playstation typo
2021-01-05 23:44:08 +07:00
Gerald Host
386ebc29f1 feat: update readme playstation
Update Playstation to PlayStation as "Playstation" is not a known user agent.
2021-01-05 12:59:41 +00:00
Junki-Ishida
b0f14de2a4 Fix Detection Rule For Amazon Fire TV 2021-01-05 21:19:07 +09:00
Faisal Salman
fd8a583020 Merge pull request #469 from bynice/patch-1
Update ua-parser.js
2021-01-02 11:02:15 +07:00
Faisal Salman
cc2da937c6 Merge pull request #368 from Deliaz/master
Add Coc Coc browser detection
2020-12-17 20:07:49 +07:00
Yılmaz
34e2e800c5 Update ua-parser.js
Samsung Tablet SM-P587 must be Tablet device type
2020-12-17 15:39:17 +03:00
Deliaz
26c74ef356 Merge branch 'develop' into master 2020-12-16 19:37:22 +02:00
Faisal Salman
e4b3029668 Merge pull request #466 from yoyo837/patch-1
Update homepage
2020-12-13 12:43:11 +07:00
Amumu
b7d4865afd Update homepage 2020-12-13 10:59:01 +08:00
Faisal Salman
d5ab75a14e Merge branch 'master' of github.com:faisalman/ua-parser-js 2020-12-10 10:47:08 +07:00
Faisal Salman
c7475db860 0.7.23 2020-12-10 10:45:16 +07:00
Faisal Salman
83d37b4887 Merge pull request #451 from dineshks1/master
Adds travis jobs on ppc64le
2020-12-03 15:32:35 +07:00
Faisal Salman
2d53ceb8bf Merge branch 'develop' of github.com:faisalman/ua-parser-js into develop 2020-12-01 10:50:17 +07:00
Faisal Salman
d107155a57 Merge pull request #463 from vinyldarkscratch/bump-deps
Bump version for all dependencies
2020-12-01 10:36:46 +07:00
Faisal Salman
43fb4d16a7 Merge pull request #459 from WizKid/master
Amazon Fire do not always contain build number
2020-12-01 10:36:11 +07:00
Faisal Salman
6d1f26df05 Fix ReDoS vulnerabilities reported by Snyk 2020-12-01 10:09:58 +07:00
Faisal Salman
86471ad7e2 Merge branch 'master' into develop 2020-11-30 23:16:15 +07:00
Faisal Salman
9dfa5fc675 Fix #453 - ReDoS vulnerability in MachSpeed tablets detection as reported by @migueldemoura 2020-11-30 23:15:30 +07:00
Queen Vinyl Darkscratch
4547dbc0b4 Bump version for all dependencies 2020-11-28 05:42:37 -08:00
Emil Hesslow
7b23335d29 Amazon Fire do not always contain build number 2020-11-23 13:43:33 -08:00
dineshks1
da53c35f91 Adds travis jobs on ppc64le 2020-10-28 12:12:40 +00:00
Faisal Salman
edd84eaa72 Fix #447 - Improve identification for LG SmartTV 2020-10-01 12:16:54 +07:00
Faisal Salman
1a75bc845f Fix #444 - Identify unknown Firefox-based browser as "Firefox" rather than "Mozilla" 2020-09-17 23:29:17 +07:00
Faisal Salman
e72371c34d bump version to 0.7.22 2020-09-12 16:06:20 +07:00
Faisal Salman
e96f95802d Refine Xiaomi detection 2020-09-12 15:56:30 +07:00
Faisal Salman
aa190ad319 Merge branch 'master' into develop 2020-09-12 15:50:06 +07:00
Faisal Salman
233d3bae22 Fix potential ReDoS vulnerability 2020-09-12 15:47:15 +07:00
Faisal Salman
3547f16d08 Merge pull request #437 from RomanSavarin/samsung-note-10
Detect Samsung Note 10.1 as a tablet
2020-09-11 21:31:46 +07:00
Raman Savaryn
da113f9fad Merge branch 'develop' into samsung-note-10 2020-08-18 08:14:55 +03:00
Faisal Salman
150ad0b176 Merge pull request #439 from joeyparrish/develop
Extract Chromecast firmware version
2020-08-13 13:58:24 +07:00
Faisal Salman
ba5324d3cd Merge pull request #436 from derUli/develop
Detect SM-P610 / Samsung Galaxy Tab S6 Lite as tablet
2020-08-13 13:55:39 +07:00
Faisal Salman
631d0501bb Merge pull request #426 from nionata/feature/facebook
Detect Facebook In-App Browsers without versions
2020-08-13 13:51:34 +07:00
Joey Parrish
20ceaf9000 Extract Chromecast firmware version
Rather than put the CPU type as the OS version, for Chromecast, the
firmware version would be much more useful.

For example:

  Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like
  Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.183786

This should produce:

  os: { name: "Chromecast", version: "1.42.183786" }

Instead of:

  os: { name: "Linux", version: "aarch64" }
2020-08-12 11:00:51 -07:00
roman.savarin
a8972c7d70 Detect Samsung Note 10.1 as a tablet 2020-07-31 17:04:50 +03:00
Ulrich Schmidt
8196cb1c43 detect SM-P610 / Samsung Galaxy Tab S6 Lite as tablet 2020-07-21 14:18:50 +02:00
Nicholas Ionata
624eaf3f8a Merge branch 'develop' into feature/facebook 2020-06-03 18:35:41 -04:00
nionata
4ca311224f catch facebook in-app browsers that do not contain versions 2020-06-03 18:10:56 -04:00
Faisal Salman
5230745280 Merge pull request #424 from patrick-nurt/detect-huawei-p30
Detect Huawei P30
2020-05-19 01:00:34 +07:00
patrick-nurt
cc11bc6a2c Update device-test.json 2020-05-17 08:20:27 +04:00
patrick-nurt
bd6dee4a08 Update ua-parser.js 2020-05-17 08:17:30 +04:00
Faisal Salman
1fc9d5a4a4 Merge pull request #409 from masahills/devlocal
Detect Android models from unidentified device vendors.
2020-01-25 11:45:20 +07:00
Masahiko Sato
7568f0a6f5 Updated the regexp patterns to be simpler/safer. 2020-01-20 17:15:57 +09:00
Masahiko Sato
726a458c84 Try to detect Android device models from unidentified vendors. 2020-01-17 15:42:02 +09:00
Faisal Salman
4daaa41211 Merge pull request #406 from insanehong/develop
Add  Whale Browser@NAVER Corp to list of browsers
2020-01-08 00:01:48 +07:00
insanehong
74c973b0d8 Add new browser Whale@Naver Corp. - https://whale.naver.com 2020-01-07 17:29:14 +09:00
Faisal Salman
43169ce1da Merge pull request #405 from tkrotoff/remove-script-type
No need for type="text/javascript"
2020-01-05 21:18:39 +07:00
Tanguy Krotoff
b0059eff5b No need for type="text/javascript" 2020-01-05 12:46:10 +01:00
Tanguy Krotoff
ec0d7c037a Tabs => spaces 2020-01-05 12:45:40 +01:00
Faisal Salman
a8eac11d82 Simplify Huawei regex 2019-12-21 05:49:32 +07:00
Faisal Salman
e15ac48f0f Merge branch 'develop' of github.com:faisalman/ua-parser-js into develop 2019-12-21 05:36:39 +07:00
Faisal Salman
74cb3d417b Merge pull request #404 from 8thwall/huaweiProDevices
Added Huawei P20 Pro and Huawei Mate P20 Pro Device Detection
2019-12-21 05:25:44 +07:00
Tony Tomarchio
b45bd07bab Add additional model numbers for Huawei Mate 20 Pro 2019-12-19 11:10:06 -08:00
Tony Tomarchio
feafa4d027 Detect Huawei P20 Pro 2019-12-19 11:10:06 -08:00
Tony Tomarchio
fc08e23f54 Detect Huawei Mate 20 Pro 2019-12-19 11:10:06 -08:00
Faisal Salman
590234ba13 Merge pull request #402 from ChadKillingsworth/pixels
Add detection for newer Pixel devices
2019-12-20 01:21:32 +07:00
Faisal Salman
31a0460b60 v0.7.21 2019-12-19 23:11:25 +07:00
Faisal Salman
e1dd27cc3f Update README 2019-12-19 23:01:31 +07:00
Faisal Salman
e14dcd598c Fix #351: Identify Huawei MediaPad as tablet 2019-12-14 22:41:59 +07:00
Faisal Salman
d260bcca37 Remove redundant rule for OnePlus 2019-12-14 19:06:53 +07:00
Faisal Salman
9da7fd4f92 Fix #395: Add 360 Browser 2019-12-14 07:30:43 +07:00
Faisal Salman
5cbd2fa795 Fix #389 TypeError when $=null 2019-12-14 06:20:34 +07:00
Faisal Salman
7fca67cbc7 Add OS: KaiOS 2019-12-14 05:49:00 +07:00
Chad Killingsworth
ac123a98de Add detection for newer Pixel devices 2019-12-04 07:08:51 -06:00
Faisal Salman
65b3804625 Merge pull request #399 from MimyyK/master
Add new devices OnePlus
2019-11-16 23:13:53 +07:00
MimyyK
c558a64ec5 Add new devices (OnePlus 6 and OnePlus 6T) 2019-11-15 12:04:23 +01:00
Faisal Salman
c191372e67 Merge pull request #393 from ll-syber/baidubox
Add Baidu App detection
2019-09-25 12:45:11 +07:00
ll-syber
5050ef75f6 1. merge baidubrowser with bidubrowser, and place them in "trident based"
2. add baiduboxapp, which stand for "Baidu App on mobile"
2019-09-17 19:52:12 +08:00
Faisal Salman
3768a26e5d Merge pull request #390 from JBYoshi/blink-version
Use Chrome version for Blink version.
2019-09-09 23:26:14 +07:00
Faisal Salman
12a96a992a Merge pull request #392 from JBYoshi/smart-tv-type
Classify Apple TV and Chromecast as smart TVs.
2019-09-05 19:09:53 +07:00
JBYoshi
3a78cf598d Classify Apple TV and Chromecast as smart TVs. 2019-09-04 10:21:13 -05:00
JBYoshi
8457f61f60 Fix whitespace. 2019-08-28 21:16:40 -05:00
JBYoshi
ca14b133cb Use Chrome version for Blink version. 2019-08-28 21:12:14 -05:00
Faisal Salman
411e41afd8 Merge pull request #374 from pavelstudeny/master
Add Avast Secure Browser & AVG Secure Browser
2019-08-27 14:25:02 +07:00
Faisal Salman
44d4ed5350 Merge pull request #383 from 8thwall/huaweiDevices
Detect Huawei P20, P20 Lite and P30 Pro
2019-08-27 14:21:39 +07:00
Tony Tomarchio
e5a02c0e57 Detect Huawei P20 2019-07-24 10:52:13 -07:00
Alvin Portillo
c752520041 Detect Huawei P20 Lite and P30 Pro 2019-07-19 14:45:34 -07:00
Pavel Studeny
ee391c8888 fix comment 2019-06-21 09:43:12 +02:00
Faisal Salman
a88934fadf v0.7.20 - released under the MIT license 2019-06-08 21:50:39 +07:00
Faisal Salman
8cf2a87938 Fix #379 Detect Lenovo Tab 2019-06-08 21:10:52 +07:00
Faisal Salman
b1d6eda6e1 Fix #378 Detect Samsung Galaxy C9 Pro 2019-06-08 20:51:31 +07:00
Faisal Salman
a9fc6163b8 Fix #289 Detect Xiaomi Mi as Mobile 2019-06-08 20:39:31 +07:00
Faisal Salman
7ef62a68de Fix #318 Detect Meizu Note as Mobile 2019-06-08 20:28:14 +07:00
Faisal Salman
de3b3bd55e Merge pull request #372 from maxnordlund/patch-2
Remove outcommented code
2019-06-08 18:57:19 +07:00
Faisal Salman
700220f2b9 Merge pull request #380 from evaliyev/fix_license
Fix license
2019-06-08 18:54:52 +07:00
Elchin Valiyev
90ae87ec17 Update README 2019-06-05 17:02:46 +02:00
Elchin Valiyev
f60fdbefa5 fix license in package.json 2019-06-05 16:48:01 +02:00
Faisal Salman
97e919024b Merge pull request #375 from IldarKamalov/develop
Fixed Edge Chromium detection
2019-05-23 17:21:31 +07:00
Ildar Kamalov
a88b70bdd4 Fixed Edge Chromium detection
Closes #373
2019-04-13 10:48:53 +03:00
Pavel Studeny
0b7d05bae0 Add AVG Secure Browser detection 2019-04-10 16:38:13 +02:00
Pavel Studeny
7d4d9fd476 Add Avast Secure Browser detection 2019-04-10 16:22:15 +02:00
Faisal Salman
89635fcc6e Merge pull request #371 from maxnordlund/patch-1
Fix typo
2019-03-26 13:39:08 +07:00
Faisal Salman
b6d2bb5262 Merge pull request #369 from symunona/rjs-fix
FIX: When using as AMD module with RequireJS optimizer using a namespace
2019-03-26 13:38:49 +07:00
Faisal Salman
73192e64d4 Merge pull request #364 from rainemak/sailfishos
Add Sailfish OS and Sailfish Browser detection
2019-03-26 13:38:28 +07:00
Faisal Salman
557c46f413 Merge pull request #359 from hr6r/develop
WeChat(Win) Desktop
2019-03-26 13:38:20 +07:00
Faisal Salman
9fb502ea6d Merge pull request #353 from 8thwall/pixelFix
Fix Pixel XL devices on Chrome 70
2019-03-26 13:38:11 +07:00
Max Nordlund gmail
37cac21d0c Remove outdated TODO
This todo was written in April 2015, which at the time of this commit is
almost 4 years ago. See 6a284e26
2019-03-25 12:23:21 +01:00
Max Nordlund gmail
95f37b4ce5 Remove unused media players
This got disabled ~4 years ago, see 5d817e37
2019-03-25 12:20:06 +01:00
Max Nordlund gmail
cc479f81ae Remove outcommented code
Hasn't been used for years, so it's most likely safe to remove.
2019-03-25 12:14:31 +01:00
Max Nordlund
d1a7f365ad Remove disabled CLI functionality
See #268
2019-03-25 12:12:39 +01:00
Max Nordlund
a4da1e2b65 Remove outcommented code
It was disabled 2 years ago, see #258
2019-03-25 12:11:44 +01:00
Max Nordlund
795139e1b8 Fix typo
Changes `margedRegexes` -> `mergedRegexes`
2019-03-25 11:54:55 +01:00
Bendeguz
97dc89ae03 FIX: When using in an AMD module with RequireJS using a namespace,
it does not get packed correctly, because r.js optimizer matches
the exact line containing 'function' as a string. (See r.js@26506)
2019-03-19 10:57:36 +01:00
Deliaz
cd3ba72b2f Add Coc Coc browser detection 2019-03-18 13:17:44 +07:00
Raine Makelainen
995e872ff8 Add Sailfish OS and Sailfish Browser detection 2019-03-01 14:50:54 +02:00
hr6r
3bad800860 Merge branch 'develop' into develop 2019-01-23 14:46:05 +08:00
dianhe
bc4fd7417c test name 2019-01-23 14:43:56 +08:00
dianhe
6f27f8b862 + 'WeChat(Win) Desktop' 2019-01-23 14:32:30 +08:00
Alvin Portillo
df5229cb62 Fix Pixel XL devices on Chrome 70 2018-11-30 11:00:24 -08:00
Faisal Salman
732cf5834e Fix #337 - Samsung Smart-TV 2018-11-23 10:26:00 +07:00
Faisal Salman
ddcc29f63f Fix #303 - Acer Iconia 2018-11-23 09:23:13 +07:00
Faisal Salman
ce95d9ac17 Fix #323 - Detect Asus ZenPad 10 2018-11-23 01:15:06 +07:00
Faisal Salman
56978dec0a Fix #327: iPad identified as mobile when using UCBrowser 2018-11-23 00:52:07 +07:00
Faisal Salman
60c4c2b693 Fix #252: Detection for HTC Desire 820 2018-11-23 00:38:19 +07:00
Faisal Salman
213d2296df Update list 2018-11-23 00:17:42 +07:00
Faisal Salman
ed1ccb3902 Fix #340 - Add Browser: QupZilla, Falkon 2018-11-22 23:40:26 +07:00
Faisal Salman
61e5d24bb5 Add Engine: Goanna 2018-11-22 23:33:42 +07:00
Faisal Salman
7c5991a725 Fix #341: Detect Konqueror before Safari 2018-11-22 13:49:59 +07:00
Faisal Salman
3a5a701375 Fix #246 #247 - Add Engine: Blink 2018-11-22 13:21:09 +07:00
Faisal Salman
f6ef14d0cd Fix #349 Sony w/ Chrome >=70 2018-11-09 12:29:19 +07:00
Faisal Salman
7aca357879 Fix #328 New release 0.7.19 2018-10-26 01:35:15 +07:00
Faisal Salman
7f8f357995 Remove Node 0.10 from Travis 2018-10-26 01:17:13 +07:00
Faisal Salman
0fd919bd51 Merge branch 'develop' of github.com:faisalman/ua-parser-js into develop 2018-10-26 00:53:15 +07:00
Faisal Salman
a400d2163c Fix #347 Pixel C in Chrome 70 2018-10-26 00:52:27 +07:00
Faisal Salman
073c672af5 Add OS: Fuchsia 2018-10-26 00:48:05 +07:00
Faisal Salman
93e17524c0 Add OS: Fuchsia 2018-10-26 00:37:15 +07:00
Faisal Salman
2c7e61f9a2 Add Device: Essential & Google Pixel 2018-10-26 00:35:59 +07:00
Faisal Salman
87c6e5c1bd Merge pull request #346 from 8thwall/essential
Detect Essential Phone (PH-1)
2018-10-25 23:00:59 +07:00
Faisal Salman
b88c52131f Merge pull request #345 from 8thwall/pixel3
Add Pixel 2 XL, Pixel 3, Pixel 3 XL Device Models
2018-10-25 22:56:46 +07:00
Alvin Portillo
6c2a767e32 Add Pixel 2 XL, Pixel 3, Pixel 3 XL Device Models 2018-10-22 11:28:31 -07:00
Alvin Portillo
7dbf0c6867 Detect Essential Phone (PH-1) 2018-10-22 10:29:19 -07:00
Faisal Salman
0304152f72 Merge branch 'master' of github.com:faisalman/ua-parser-js 2018-10-21 15:21:53 +07:00
Faisal Salman
4cc29dd88c Update readme: using TypeScript 2018-10-21 15:21:03 +07:00
Faisal Salman
95fcd3f672 Fix #321: Add a LICENSE to be recognized by GitHub API 2018-10-13 10:01:51 +07:00
Faisal Salman
d7608d0459 Merge pull request #338 from coox/master
Fix browser detection of Edge on Android
2018-10-06 23:32:20 +07:00
Faisal Salman
f8820389a9 Merge branch 'develop' into master 2018-10-06 23:30:37 +07:00
Faisal Salman
46b9f0f2aa Merge pull request #334 from vladimyr/develop
Detect Firefox Focus & Opera Touch
2018-10-06 23:28:47 +07:00
Faisal Salman
41ccecadea Merge pull request #333 from brave/master
add Brave to list of browsers
2018-10-06 23:28:29 +07:00
Eric Redon
964431ef89 Fix browser detection of Edge on Android 2018-09-27 17:50:54 +02:00
Dario Vladovic
bf79eabecc Improve Microsoft Edge detection 2018-09-16 12:19:47 +02:00
Dario Vladovic
01eab85f7d Add Opera Touch & Firefox Focus, fix Microsoft Edge 2018-09-16 12:07:18 +02:00
Dario Vladovic
384bafe31c Prevent package-lock creation 2018-09-16 11:46:11 +02:00
Dario Vladovic
eb83122c5e Update .gitignore 2018-09-16 11:40:03 +02:00
Matthew O
64bd8a4e60 Merge pull request #1 from KarateCowboy/add-brave
add Brave browser
2018-09-14 16:05:27 -05:00
Matthew Origer
fc4c0df095 add Brave browser 2018-09-14 15:57:26 -05:00
Faisal Salman
a142c0ee94 Update filesize description 2018-09-08 16:13:45 +07:00
Faisal Salman
5c30aeed59 Merge branch 'master' of github.com:faisalman/ua-parser-js 2018-09-08 16:07:57 +07:00
Faisal Salman
00064be6d6 Merge pull request #325 from dcyriller/update-readme
Update browser names in README
2018-09-08 16:04:28 +07:00
Faisal Salman
76be1cb328 Fix test for Meizu device 2018-09-08 14:21:36 +07:00
Faisal Salman
d601ab195f Merge branch 'shchotse-add_true_meizu_device_type' into develop 2018-09-08 14:19:00 +07:00
Faisal Salman
ac3b0624b8 Identify MZ as Meizu #263 2018-09-08 14:17:22 +07:00
Cyrille David
b49865266c Update browser names in README 2018-07-26 11:58:21 +02:00
Cyrille David
565d67bbb6 Remove unconsistant (because outdated?) names
Only remove names coming from README.
2018-07-26 11:42:45 +02:00
Cyrille David
58c71a019e Merge README list into extraction 2018-07-26 11:40:11 +02:00
Cyrille David
8c2607aac9 Extract browser names from test/browser-test.json 2018-07-26 11:36:10 +02:00
Faisal Salman
55ffb10a5f Fix #259: Avoid collision when using $.ua 2018-05-23 20:28:47 +07:00
Faisal Salman
1493587742 Fix #317: Add missing warranty section of MIT license in readme.md 2018-05-17 06:19:13 +07:00
Faisal Salman
f5e0aa83eb Fix #290: Add Device Model: Pixel 2 2018-05-08 15:26:38 +07:00
Faisal Salman
8fdc32f5b8 Fix #295: Detect Amazon Fire TV 2018-05-06 22:42:14 +07:00
Faisal Salman
0059eef770 Fix #293: Detect ARM on ChromeOS 2018-05-06 22:26:16 +07:00
Faisal Salman
93affc671c Replace donation button 2018-05-06 22:17:10 +07:00
Faisal Salman
a3f5efa680 Fix #212: Detect LINE 2018-05-06 22:10:39 +07:00
Faisal Salman
4c00ccc6c2 Fix #271 2018-05-06 21:05:30 +07:00
Faisal Salman
34f934fa55 increment patch version 2018-05-04 23:13:57 +07:00
Faisal Salman
218e3a4a3b Merge pull request #314 from no5no6/master
Add support for Sogou Browser、LieBao Browser、Baidu Browser、2345 Browser
2018-05-04 08:52:35 +07:00
yuanyang
5eda2491b1 Merge branch 'master' of https://github.com/no5no6/ua-parser-js 2018-05-02 10:55:52 +08:00
yuanyang
7acaf9ced8 add Sogou Browser、LieBao Browser、Baidu Browser、2345 Browser 2018-05-02 10:54:54 +08:00
Faisal Salman
bafac18512 Merge pull request #312 from brophdawg11/qqbrowserlite
#311 - Add support for QQBrowserLite
2018-04-29 22:03:03 +07:00
Faisal Salman
ee553df245 Merge branch 'develop' into qqbrowserlite 2018-04-29 22:02:07 +07:00
Faisal Salman
bc4e75573a Merge pull request #305 from shreedharshetty/shreedharshetty-patch-1
Incorrect browser name shows for Edge browser on mobile
2018-04-29 21:58:34 +07:00
Faisal Salman
378dee1aaa Merge pull request #310 from JoshuaKGoldberg/patch-1
Readme typo: missing "be more"
2018-04-29 21:57:29 +07:00
Faisal Salman
d413cb0745 Merge branch 'develop' into shreedharshetty-patch-1 2018-04-29 21:56:34 +07:00
Faisal Salman
7fb860f030 Merge pull request #304 from gulping/patch-1
mark license comment as important
2018-04-29 21:52:39 +07:00
Faisal Salman
2e57a9778f Merge pull request #299 from zbjornson/vulnfix
Fix vulnerable RegExps
2018-04-29 21:52:23 +07:00
yuanyang
fb92a46479 add Sogou Browser、LieBao Browser、Baidu Browser、2345 Browser 2018-04-25 12:02:19 +08:00
Matt Brophy
4790f944bf Update README 2018-04-23 09:37:13 -04:00
Matt Brophy
3ed9d3f4ff #311 - Add support for QQBrowserLite 2018-04-23 09:36:11 -04:00
Josh Goldberg
0c6ae1a1e3 Readme typo: missing "be more" 2018-04-21 16:10:42 -07:00
Shreedhar
84bfaaf225 updated ua string for ios 2018-04-02 20:09:57 +05:30
Shreedhar
9ceb402834 fix: wrong browser name returns for edge browsers on mobiles 2018-04-02 19:52:18 +05:30
gulpin
a795cf83c4 mark license comment as important 2018-03-29 16:41:58 +09:00
Zach Bjornson
8b54a7256e Fix vulnerable RegExps
Fixes #298
2018-02-26 20:12:16 -08:00
Faisal Salman
dfb8e758d1 Merge pull request #287 from m90/patch-1
Add missing Waterfox browser to README
2018-01-11 23:24:03 +07:00
Frederik Ring
083cb66d46 Add missing Waterfox browser to README 2018-01-11 13:04:00 +01:00
Faisal Salman
50bd78afb1 Fix ReDoS vulnerability reported by Sonatype 2017-12-26 15:30:33 +07:00
Faisal Salman
ac7f87f199 Fix #272 OnePlus 2017-12-26 10:55:27 +07:00
Faisal Salman
b367a3f741 Update contributors 2017-12-26 08:29:40 +07:00
Faisal Salman
4bbd7bd27c Merge pull request #286 from loris/master
Add support for Xiaomi Mi 1/2/3/4/5/6 mobile smartphones
2017-12-18 22:49:18 +07:00
Loris Guignard
610781dac3 Add support for "Mi 5s Plus" 2017-12-15 16:32:51 +01:00
Loris Guignard
1b86f8fb94 Xiaomi tablets: Ensure the UA contains "pad" 2017-12-15 16:32:33 +01:00
Loris Guignard
0413755986 Revert /dist files 2017-12-15 16:16:39 +01:00
Loris Guignard
618c92aec9 Add support for Xiaomi Mi 1/2/3/4/5/6 mobile smartphones 2017-12-15 15:56:27 +01:00
Faisal Salman
7964f909a3 Merge pull request #280 from stiekel/master
Add Quark Browser support
2017-12-01 09:02:13 +07:00
Faisal Salman
934e077aea Merge pull request #281 from dhoko/feat/waterfox
Add support for waterfox
2017-12-01 09:01:46 +07:00
dhoko
503bb6eb06 Add support for waterfox 2017-11-29 09:11:17 +01:00
Stiekel
435335e12f Add Quark Browser support 2017-11-24 17:30:38 +08:00
Faisal Salman
a6e1ed6392 Merge pull request #278 from dhoko/feat/palemoon
Add support for palemoon browser + basilisk
2017-11-21 16:30:20 +07:00
dhoko
9dfeee5211 Add support for palemoon browser + basilisk 2017-11-21 10:25:30 +01:00
Faisal Salman
ce2a8a3939 Merge pull request #274 from bulbulpaul/fix_license
Fixed license
2017-11-21 13:18:11 +07:00
Nobuo Okada
46dfe2aeb8 Fixed license 2017-11-01 13:18:26 +09:00
Faisal Salman
9c06febfce Merge pull request #273 from bulbulpaul/fix-license
Fixed license
2017-10-31 20:05:01 +07:00
Nobuo Okada
a75de42f8e Fixed license 2017-10-31 18:59:41 +09:00
Faisal Salman
6095258673 Fix #268 revert changes 2017-10-12 15:16:23 +07:00
Faisal Salman
40aa1a693b bump version 2017-10-12 12:10:08 +07:00
Faisal Salman
25e143ee7c Fix vulnerable regex in getOS() (as reported by Nick Starke) 2017-10-12 12:07:10 +07:00
Faisal Salman
7bd9ffea24 Fix #262 Chrome Headless 2017-10-12 09:48:25 +07:00
Faisal Salman
c566f45cbd Merge branch 'master' into develop 2017-10-12 09:39:37 +07:00
Faisal Salman
3b89dff771 increment revision 0.7.15 2017-10-12 09:28:14 +07:00
Faisal Salman
5ba5e7abc9 Merge branch 'develop' of github.com:faisalman/ua-parser-js into develop 2017-10-12 09:19:03 +07:00
Faisal Salman
b8978f5933 Fix #262 Chrome Headless 2017-10-12 09:18:42 +07:00
Faisal Salman
eeb1b9ef81 Merge pull request #265 from brophdawg11/support-ios-gsa
Add support for Google Search Appliance on iOS
2017-10-11 21:35:06 +07:00
Faisal Salman
aeae29be66 Merge pull request #267 from LukasDrgon/patch-1
Add CDN link
2017-10-11 20:48:39 +07:00
Lukas Drgon
3ce12c0cf9 Add CDN link 2017-10-02 19:31:03 +02:00
Matt Brophy
4d95ac10ef Add support for Google Search Appliance on iOS 2017-09-19 14:19:32 -04:00
Faisal Salman
61b4a089c5 Merge pull request #264 from arunrreddy/support-device-redmi
Support device redmi
2017-09-17 06:02:39 +07:00
Arun Rama Reddy
74ec93ffb6 feat: Added Redmi phone and Mi Pad tablet detection support 2017-09-16 11:12:29 +05:30
Igor Topal
2c28b3e97e Add new Meizu device type (MZ) support, for correctly parsing 2017-09-08 17:47:07 +03:00
Faisal Salman
459f3d34f5 Issue #258 0.7.15rc 2017-08-06 08:27:02 +07:00
Faisal Salman
6f621f1ae2 New feature: CLI support 2017-08-06 07:55:22 +07:00
Faisal Salman
7ae3098778 Fix #256 tag new release 0.7.14 2017-07-19 19:39:01 +07:00
Faisal Salman
806c2b8030 move jquery.json to package.json 2017-07-19 19:35:42 +07:00
Faisal Salman
cb1a64b509 Merge some commits from branch 'develop' 2017-07-17 23:14:19 +07:00
Faisal Salman
b49cfae4e2 Opening donation 2017-07-17 22:54:45 +07:00
Faisal Salman
91b046462c Merge branch 'master' of github.com:faisalman/ua-parser-js 2017-07-17 22:51:38 +07:00
Faisal Salman
69509af6dd Merge pull request #254 from hr6r/develop
+ browser inside QQ support
2017-07-05 19:01:27 +07:00
Faisal Salman
225f703b67 Merge pull request #231 from motnik/develop
Added Multiple Tablets Detection (LG, RCA, Dell, Verizon, etc.)
2017-07-05 19:00:02 +07:00
dianhe
7f217753f5 + browser inside QQ support 2017-07-05 19:55:19 +08:00
Faisal Salman
10f9fb35ca Merge pull request #234 from Kronuz/patch-1
Fix server side rendering
2017-07-05 18:38:48 +07:00
Faisal Salman
5ae468a3d3 uastring is optional when using extensions 2017-07-01 20:28:03 +07:00
Faisal Salman
fd46c4d2be Fix #249 Detect Huawei devices 2017-07-01 18:49:35 +07:00
Faisal Salman
297c6538bc Fix #206 Detect OS for iOS app 2017-06-28 16:12:43 +07:00
Faisal Salman
f9f9fa79e1 Fix #247 Add Oculus Browser 2017-06-28 15:57:50 +07:00
Faisal Salman
07fe58b793 Fix #220 Identify UBrowser as UCBrowser 2017-06-28 14:54:39 +07:00
Faisal Salman
3a4626b5e8 Fix #211 Distinguish Samsung Browser from Android Browser 2017-06-28 14:20:05 +07:00
Faisal Salman
3fd01f07ea Fix #235 Detect Meizu Tablet 2017-06-22 17:37:35 +07:00
Faisal Salman
d103dd5450 Fix #219 samsung mistakenly detected as sony 2017-06-22 17:04:14 +07:00
Faisal Salman
6cc6742f5e increment patch version 2017-06-22 14:20:01 +07:00
Faisal Salman
cf977c50ed remove component.json 2017-06-22 14:11:17 +07:00
Faisal Salman
4c15b10730 revert readme.md fix 2017-06-03 02:28:55 +07:00
Faisal Salman
a3c7619d3a fix readme.md conflict 2017-06-03 01:08:20 +07:00
Faisal Salman
82aba654f9 Merge pull request #242 from ebbmo/feature/recognize_facebook_browser_for_android
Facebook browser now recognized as well (not only iOS)
2017-05-23 14:55:27 +07:00
Hermann Ebert
2f1b14906f Facebook browser now recognized as well (not only iOS) 2017-05-23 09:06:58 +02:00
Faisal Salman
a3a09d33bc Merge pull request #236 from ronkorland/master
Add support for Chrome Headless user agent
2017-05-17 09:49:29 +07:00
Faisal Salman
946ba02c54 Merge pull request #228 from arturom/develop
Added Google Chromemast detection
2017-05-15 00:38:11 +07:00
Faisal Salman
d2d570fcd5 Merge pull request #233 from vladimyr/develop
Adding Opera Coast support, fixing UCBrowser detection
2017-05-15 00:33:38 +07:00
Faisal Salman
18e08428f4 Merge pull request #216 from ericschrenker/0readme
Copyedit Readme File
2017-04-26 11:15:28 +07:00
Ron Korland
552915907e Add support to Chrome Headless user agent 2017-04-13 16:42:04 +03:00
Germán M. Bravo
6984de7927 Fix server side rendering
Fixes problem when window is undefined in the server.
2017-03-30 16:13:41 -06:00
Dario Vladovic
7a68f35574 Adding support for Puffin browser 2017-03-21 18:41:51 +01:00
Dario Vladovic
2bc75f10bc Adding Opera Coast support, fixing UCBrowser detection
- pushing UCBrowser up to avoid being caught by Chrome regex
- adding regex for Opera Coast (Opera's iOS browser)
2017-03-21 18:09:15 +01:00
Nikhil Motiani
2610f37a8b Added Gigaset Tablet detection 2017-03-16 20:39:21 +05:30
Nikhil Motiani
a25bb8b1a6 Added Amazon Kindle Fire Tablet detection 2017-03-16 20:35:11 +05:30
Nikhil Motiani
ee2db31f8c Added Le-Pan Tablet detection 2017-03-16 20:27:04 +05:30
Nikhil Motiani
89775a8ae7 Added NextBook Tablet detection 2017-03-16 20:19:14 +05:30
Nikhil Motiani
7d826ed62e Improved Unidentified Tablet detection 2017-03-16 20:09:22 +05:30
Nikhil Motiani
a6316f02b0 Added Trinity Tablets detection 2017-03-16 20:06:33 +05:30
Nikhil Motiani
72a11e24b2 Added MachSpeed Tablets detection 2017-03-16 20:00:42 +05:30
Nikhil Motiani
f7ca724f3b Added Rotor Tablets detection 2017-03-16 19:56:40 +05:30
Nikhil Motiani
8d826fcc24 Added Envizen Tablets detection 2017-03-16 19:51:44 +05:30
Nikhil Motiani
951106c425 Added LvTel Phones detection 2017-03-16 19:44:21 +05:30
Nikhil Motiani
83ca52bb28 Added Voice Xtreme Phones detection 2017-03-16 19:43:50 +05:30
Nikhil Motiani
6fb4941458 Added Insignia Tablets detection 2017-03-16 15:48:22 +05:30
Nikhil Motiani
48ab3b372c Added Dragon-Touch Tablets detection 2017-03-16 15:45:39 +05:30
Nikhil Motiani
38c409e8d9 Added Zeki Tablets detection 2017-03-16 15:27:35 +05:30
Nikhil Motiani
4e2cbdfd16 Added Swiss Mobiles and Tablets detection 2017-03-16 15:19:22 +05:30
Nikhil Motiani
fbe8a0e3a6 Added Generic Android detection 2017-03-16 15:09:01 +05:30
Nikhil Motiani
8e9c400ec5 Added ZTE K-Series Tablet detection 2017-03-16 15:07:22 +05:30
Nikhil Motiani
b89fa098aa Added NuVision Tablet detection 2017-03-16 15:04:02 +05:30
Nikhil Motiani
f3882f1882 Added Barnes & Noble Tablet detection 2017-03-16 15:03:04 +05:30
Nikhil Motiani
a25426840c Added Dell Venue Tablet detection 2017-03-16 15:01:49 +05:30
Nikhil Motiani
985a7b18e0 Added Verizon Devices detection 2017-03-16 15:00:00 +05:30
Nikhil Motiani
8e09cd49e3 Added RCA Devices detection 2017-03-16 14:57:28 +05:30
Nikhil Motiani
4768992762 Added LG Generic Mobile 2017-03-16 14:54:40 +05:30
Nikhil Motiani
f89e08f2c0 Improved LG Tablet Detection 2017-03-16 14:47:11 +05:30
Arturo Mejia
fe568ffe96 Added Google Chromemast detection 2017-03-08 12:55:35 -05:00
Eric Schrenker
252db2534e 📝 copyedit readme 2017-01-17 14:43:09 -06:00
Faisal Salman
6555bf6e81 Fix #210 Refine browser: QQBrowser 2016-12-27 16:36:51 +07:00
Faisal Salman
740fc93b4b Fix #210 Add device: OPPO 2016-12-27 15:58:58 +07:00
Faisal Salman
eed646f9ce Add Bowser 2016-12-22 23:50:01 +07:00
Faisal Salman
764de40fe0 Merge pull request #205 from piperchester/patch-1
Fix formatting for consistency
2016-12-07 14:35:43 +07:00
Piper Chester
49609c0990 Fix formatting for consistency 2016-12-06 22:16:25 -08:00
Faisal Salman
ef69224d7c Edit readme 2016-12-06 13:47:30 +07:00
Faisal Salman
caa2f47c06 update uglify version 2016-12-06 12:44:16 +07:00
Faisal Salman
5177c460a5 Use constructors 2016-12-06 12:41:48 +07:00
Faisal Salman
3e2d5c1817 Update contributors 2016-11-22 14:03:54 +07:00
Faisal Salman
29a0372611 Merge branch 'master' into develop 2016-11-22 00:52:24 +07:00
Faisal Salman
2aa2f77881 Fix #186 unnecessary if statement inside while loop 2016-11-22 00:49:18 +07:00
Faisal Salman
1e228b2fbe Merge pull request #201 from roberttod/google-pixel
Add google pixel devices
2016-11-18 14:50:13 +07:00
Robert Tod
5379ec8513 Add google pixel devices
- Add Google Pixel and Google Pixel XL mobiles
- Add Google Pixel C tablet
2016-11-17 13:36:08 -05:00
Faisal Salman
01ae611dfa Build dist package 2016-11-14 10:14:01 +07:00
Faisal Salman
2de1f2a75d Remove ComponentJS support 2016-11-14 10:12:49 +07:00
Faisal Salman
975cbdc89e Bumping version: 0.7.11 -> 0.7.12 2016-11-14 10:02:07 +07:00
Faisal Salman
507714c3c7 Move logo to right 2016-11-14 00:42:43 +07:00
Faisal Salman
2b4a20d162 Edit readme 2016-11-14 00:33:56 +07:00
Faisal Salman
34848e8ec2 Fix #187 #171 #92 Require.js 2016-11-11 18:40:26 +07:00
Faisal Salman
97b52b2cfd Test unit for extension 2016-11-11 13:58:15 +07:00
Faisal Salman
9f0419607b Fix #127 galaxy note 2016-11-11 10:40:32 +07:00
Faisal Salman
b13c891d7f Fix #190 haiku 2016-11-11 09:26:59 +07:00
Faisal Salman
7f9919f896 Fix #185 Huawei Nexus 6P 2016-11-10 09:41:16 +07:00
Faisal Salman
9fe7561d78 Fix #96 Moto X 2016-11-10 09:30:04 +07:00
Faisal Salman
b99840d074 Fix #158 xiaomi mi note 2016-11-10 09:24:00 +07:00
Faisal Salman
61b0f1c054 Fix #87 oneplus one 2016-11-10 09:16:17 +07:00
Faisal Salman
58880fda7f Fix #43 #68 xperia sp & asus padfone 2016-11-10 09:11:23 +07:00
Faisal Salman
73735e1ca8 Fix #37 #38 test case for nexus 7 & ipod 2016-11-10 08:57:15 +07:00
Faisal Salman
0f0ea13fab Fix #99 Wrong Windows version 2016-11-10 00:45:48 +07:00
Faisal Salman
1fb82fb6ff Smart-TV ordering 2016-11-10 00:43:20 +07:00
Faisal Salman
88f2f4e24c Fix #32 browser recognized as version 2016-11-10 00:21:28 +07:00
Faisal Salman
1a4dab5829 Edit readme: guide to contribute 2016-11-09 23:41:57 +07:00
Faisal Salman
2467a458e3 Fix #22 #33 #34 #129 Distinguish stock Android Browser from Chrome 2016-11-09 22:37:21 +07:00
Faisal Salman
aadabcce29 Fix #188 Separate Chrome WebView from Chrome 2016-11-09 19:32:20 +07:00
Faisal Salman
d0b7c5892f Samsung smarttv misidentified as mobile 2016-11-09 19:27:41 +07:00
Faisal Salman
d3f959ee28 Split mediaplayer test cases, edit readme 2016-11-09 18:09:11 +07:00
Faisal Salman
d1a33d7d85 Test case for #174 2016-11-08 12:55:56 +07:00
Faisal Salman
3dae55a3c8 Fix #197 microsoft lumia 2016-11-08 12:55:19 +07:00
Faisal Salman
87b88246a2 Merge branch 'master' of github.com:faisalman/ua-parser-js 2016-11-07 21:34:16 +07:00
Faisal Salman
a56c990ec3 Fix #188 distinguish webview from chrome 2016-11-07 21:34:05 +07:00
Faisal Salman
458f3c3cd2 Merge pull request #196 from leventebalogh/patch-1
Fix: don't define the RequireJs module with name
2016-11-07 20:27:24 +07:00
Levente Balogh
f28f87c412 Fix: don't define the RequireJs module with name
If we define it with name it becomes less portable and breaks code that used version `0.7.10`.
This is not correct according to **semver**, as this is a `patch` only which should not break APIs.

I think defining the module with a name should be a responsibility of build tools / optimisation tools.
2016-11-07 10:34:08 +01:00
Faisal Salman
10775bd17c Increment build version to 0.7.11 2016-11-07 00:37:33 +07:00
Faisal Salman
c03a84a601 Add WeChat 2016-11-07 00:28:20 +07:00
Faisal Salman
eade7a9355 Merge pull request #167 from philippsimon/hbbtv
Get SmartTV device by HbbTV part
2016-11-07 00:15:10 +07:00
Faisal Salman
4e0aa0b88b Merge pull request #149 from dhcmrlchtdj/wechat
add support for WeChat
2016-11-07 00:11:25 +07:00
Faisal Salman
4e7c662b0b Merge pull request #173 from sueddeutsche/fix/samsung-device-detection
Add generic device detection for samsung smartphones
2016-11-07 00:02:02 +07:00
Faisal Salman
93993dc311 Merge pull request #181 from WebEngage/hp-10-tablet-device
Add device detection for HP 10 tablet
2016-11-06 23:52:34 +07:00
Faisal Salman
55e75dd1b3 Merge pull request #195 from firmfirm/master
Add HTML imports entry-point
2016-11-04 22:54:47 +07:00
Martynas
c71373b666 Add HTML imports entry-point 2016-11-03 19:50:51 +02:00
Faisal Salman
bf4c2e170e Fix #174: "Tablet PC" != tablet device 2016-10-29 00:39:20 +07:00
Faisal Salman
51b8089958 Merge pull request #191 from kennynaoh/master
Add CDNJS version badge in readme
2016-10-22 06:43:57 +07:00
naoh
550420d725 Add CDNJS version badge in readme
This will add the badge to show its version on CDNJS and also link to its page on CDNJS!
2016-10-18 17:10:36 +08:00
Faisal Salman
fbcfe248b8 Merge pull request #172 from fcamblor/patch-1
Fixed require sample in readme
2016-09-29 19:50:50 +07:00
Faisal Salman
2a5cd4d119 Merge pull request #179 from leipert/patch-1
rewrote license field to be SPDX compatible
2016-09-29 19:49:48 +07:00
Lithin
c3f7294a44 Add device detection for HP 10 tablet 2016-05-26 19:01:11 +05:30
Lukas Eipert
b254f93ec1 rewrote license field to be SPDX compatible
According to [NPM docs](https://docs.npmjs.com/files/package.json#license) the `license` field in package.json should be SPDX compatible.

[SPDX](https://spdx.org/licenses/) is a format which allows you to specify your licenses in an easy understandable, machine parseable way.

These changes reflect your license choice according to #1
2016-05-23 11:33:12 +02:00
Benjamin Urban
1020d10a30 Add generic device detection for samsung smartphones 2016-03-22 15:08:11 +01:00
Frédéric Camblor
5ba9fd50ed Fixed require sample in readme
Module name is `ua-parser-js`, not `ua-parser` (see [here](d929c3e508/src/ua-parser.js (L855)))
2016-03-17 18:03:33 +01:00
philippsimon
bb69ef2bd4 Get SmartTV device by HbbTV part 2016-02-26 18:53:43 +01:00
Faisal Salman
3a457f9bd9 Merge pull request #136 from malash/fix/util-extend
Rewrite util.extend to a clone version
2016-02-25 10:54:54 +07:00
Malash
d929c3e508 Merge branch 'master' into fix/util-extend
* master:
  Meteor fixes
  fix it for opera mini 8 above on iphone
  Add name to UA-Parser
  Fix image #150
  Increment build version: 0.7.10
  Check for tablet first
  Fix #153 mistaken Search phrase for Arch OS
  Seems to fix the issue for specific UA found in #159
  UAParser is exposed globally to the window object. It can be used directly.
  Fix detection of Firefox on iOS.
  Added hasOwnProperty check
  Generalize the check for an unidentifiable mobile or tablet to correctly categorize unidentifiable Android smartphones as "mobile".
  travis update: node_js stable, cache node_modules, sudo false
  Detect Nexus 6 as Motorola only.
  Add Playstation 4 support.
  Added Nexus 6 detection
  Added DEVICE regular expressions for "Samsung galaxy S6" and "Samsung Galaxy S6 Edge" devices + test cases
  Adding PhantomJS (http://phantomjs.org/)
  Add Sleipnir
2016-02-22 15:15:09 +08:00
Faisal Salman
0d42b3a752 Merge pull request #163 from jobrapido/develop
Optimized Android browser regex patterns
2016-02-21 22:47:04 +07:00
Faisal Salman
1ec2119288 Merge pull request #160 from gryphon/master
Add name to UA-Parser RequireJS module
2016-02-21 22:46:56 +07:00
Andrea Vaghi
4344c43d04 run build 2016-01-28 11:05:27 +01:00
Andrea Vaghi
909d6fc26d Optimized pattern for Android browser, moved them before the Chrome pattern to avoid errors in the some of the newest browsers 2016-01-28 11:01:05 +01:00
Faisal Salman
8e46a85549 Merge pull request #162 from cesarve77/patch-1
Meteor fixes
2016-01-07 09:11:13 +07:00
Faisal Salman
1f92d6148c Merge pull request #161 from yupmin/opera-mini-8-above-iphone
fix it for opera mini 8 above on iphone
2016-01-07 09:10:02 +07:00
CESAR RAMOS
5d57850074 Meteor fixes 2016-01-03 21:23:20 -04:30
Yun Young-jin
8e81811dea fix it for opera mini 8 above on iphone
https://dev.opera.com/blog/opera-mini-8-for-ios/
2015-12-30 12:00:33 +09:00
Grigory Dmitrenko
99a80e88fb Add name to UA-Parser 2015-12-23 14:10:37 +03:00
Faisal Salman
cbba2f5728 Fix image #150 2015-12-12 18:26:40 +07:00
Faisal Salman
fd39be3336 Increment build version: 0.7.10 2015-12-12 17:44:29 +07:00
Faisal Salman
a1293f804e merge develop 2015-12-12 17:40:57 +07:00
Faisal Salman
cf5c1f9e01 Check for tablet first 2015-12-12 17:34:00 +07:00
Faisal Salman
5d3835ad00 Merge pull request #154 from szchenghuang/meteor-export
UAParser is exposed globally to the window object. It can be used directly.
2015-12-12 15:43:09 +07:00
Faisal Salman
09bf4ecf7f Fix #153 mistaken Search phrase for Arch OS 2015-12-12 15:23:11 +07:00
Faisal Salman
43b0ee79d6 Seems to fix the issue for specific UA found in #159 2015-12-12 14:43:16 +07:00
Faisal Salman
9518833e83 Add PhantomJS fix #157 2015-12-12 14:28:39 +07:00
Faisal Salman
1e58e884ef Add PhantomJS support fix #157 2015-12-12 13:39:45 +07:00
szchenghuang
e230cc1920 UAParser is exposed globally to the window object. It can be used directly. 2015-11-20 15:30:28 +08:00
Faisal Salman
bbd3f14cfb Merge pull request #151 from 0x7f/firefox-ios
Fix detection of Firefox on iOS.
2015-11-19 21:38:06 +07:00
Faisal Salman
a66d9b238a Merge pull request #145 from lquinn/general-android-mobile
Treat all Android smartphones as mobile
2015-11-18 23:00:18 +07:00
Maximilian Haupt
ae5bfb3893 Fix detection of Firefox on iOS.
Firefox on iOS' ua string is also matched by the "Safari < 3.0" regular
expression, unfortunately. Reorder the regular expressions so that the
one for FxiOS matches first.
2015-11-13 12:09:32 +01:00
niris
2e5dff95c8 add support for wechat 2015-11-03 16:05:37 +08:00
Faisal Salman
e944fededb Merge pull request #148 from shanebo/master
Added hasOwnProperty check in result object for in
2015-11-02 09:39:34 +07:00
Shane Thacker
23160c9fb3 Added hasOwnProperty check
This ensures that the result output is clean of extended type methods
2015-11-01 12:34:54 -06:00
Liam Quinn
01ba36c94d Generalize the check for an unidentifiable mobile or tablet to correctly
categorize unidentifiable Android smartphones as "mobile".
2015-10-29 10:24:44 -04:00
Faisal Salman
99c15dee95 Merge pull request #144 from duzun/master
travis update: node_js stable, cache node_modules, sudo false
2015-10-28 06:25:55 +07:00
Dumitru Uzun
e8bec7e611 travis update: node_js stable, cache node_modules, sudo false 2015-10-22 09:30:52 +03:00
Faisal Salman
f670224d8e Merge pull request #140 from 0x7f/playstation4
Add Playstation 4 support.
2015-10-17 05:31:21 +07:00
Faisal Salman
116b5c695d Merge pull request #141 from 0x7f/fix-nexus-6
Detect Nexus 6 as Motorola only.
2015-10-17 05:31:00 +07:00
Maximilian Haupt
0aafba67fa Detect Nexus 6 as Motorola only.
The commit 3964971c3 added Nexus 6 to LG and Motorola, but it should be
Motorola only, as stated in the according commit message anyways.
2015-10-16 15:01:57 +00:00
Maximilian Haupt
ab6a56d931 Add Playstation 4 support. 2015-10-16 14:14:56 +00:00
Faisal Salman
3bff4cf037 Merge pull request #133 from URXtech/nexus-6
Added Nexus 6 detection
2015-10-13 22:02:42 +07:00
Malash
792dc0246a Rewrite util.extend to a clone version 2015-10-10 15:53:17 +08:00
Aamir Poonawalla
3964971c38 Added Nexus 6 detection
Correctly identifies a Nexus 6 device as being a Motorola mobile device.
2015-09-21 13:34:56 -07:00
Faisal Salman
3382b75cad Merge pull request #131 from pieterhendrickx/develop
Added DEVICE regular expressions for "Samsung galaxy S6" and "Samsung…
2015-08-20 20:59:59 +07:00
Pieter Hendrickx
a19c6be712 Added DEVICE regular expressions for "Samsung galaxy S6" and "Samsung Galaxy S6 Edge" devices + test cases 2015-08-20 09:00:16 +02:00
Faisal Salman
20ea67ed1d Merge pull request #130 from malash/ucbrowser
fix support for UCBrowser
2015-08-05 23:36:30 +07:00
Malash
172d63a28f fix support for UCBrowser 2015-08-05 19:47:48 +08:00
Faisal Salman
992e829643 Verup 0.7.9 2015-07-19 04:00:01 +07:00
Faisal Salman
e9e5467add Readme: flattr button, nodejs example, drop browser.major 2015-07-19 03:49:39 +07:00
Faisal Salman
d3a2e1750b Merge branch 'master' of github.com:faisalman/ua-parser-js 2015-07-19 02:22:22 +07:00
Faisal Salman
29d75c994e Merge pull request #124 from longsleep/iridium-detection
Added detection for Iridium Browser.
2015-07-19 02:23:38 +07:00
Faisal Salman
7e23d53e4b Merge branch 'master' of github.com:faisalman/ua-parser-js 2015-07-19 02:03:50 +07:00
Simon Eisenmann
892476f544 Added detection for Iridium Browser. 2015-07-17 16:10:59 +02:00
Faisal Salman
a165e152de Merge pull request #119 from roberttod/patch-1
Reference window as global if available
2015-07-04 01:39:19 +07:00
Faisal Salman
ab64c21a80 Merge pull request #120 from demis-palma/patch-4
palm os regexp fixed
2015-07-04 01:39:14 +07:00
Faisal Salman
5da2305369 Merge pull request #121 from duzun/verup
verup.js installed over NPM -> devDependencies
2015-07-04 01:39:10 +07:00
Faisal Salman
8e169098b5 Merge pull request #122 from divdavem/phantomjs
Adding PhantomJS (http://phantomjs.org/)
2015-07-04 01:39:06 +07:00
ddivernois
aa1bf53337 Adding PhantomJS (http://phantomjs.org/) 2015-07-01 11:23:56 +02:00
Dumitru Uzun
1b957cad1a verup.js installed over NPM -> devDependencies 2015-06-19 01:50:06 +03:00
Demis Palma
8d9cd21331 palm os regexp fixed
The regexp won't work as expected because the meta-character \o doesn't make sense.
Replaced with \s which indicates "whitespace character"
2015-06-18 23:32:15 +01:00
Robert Tod
f117f600ba Reference window as global if available
This change will use `window` by default if it exists so that `browserify` and `Webpack` builds do not need to do something like

```javascript
var parser = new UAParser(window.navigator.userAgent)
```

https://github.com/faisalman/ua-parser-js/issues/84
2015-06-10 17:35:16 +01:00
Faisal Salman
22e17fb004 Add Sleipnir 2015-05-11 23:44:34 +07:00
Faisal Salman
978ee5a4da Add Firefox for iOS 2015-05-11 23:33:57 +07:00
Faisal Salman
a3e4fbe5bb Merge pull request #116 from nikrolls/patch-1
Added Edge and EdgeHTML to documentation
2015-05-10 12:14:13 +07:00
Faisal Salman
9dacf37e4a Merge pull request #112 from duzun/master
Updated verup to v1.2.0 and moved its config to package.json
2015-05-10 12:13:46 +07:00
Nik Rolls
4d99bc0777 Added Edge and EdgeHTML to documentation 2015-05-10 15:33:36 +12:00
Faisal Salman
f558e657bb Merge pull request #113 from nikrolls/correct-ms-edge-detection
Microsoft Edge is not IE12
2015-05-08 20:15:13 +07:00
Nik Rolls
4203f8144f Microsoft Edge is not IE12 2015-05-08 18:02:05 +12:00
Faisal Salman
21a525f442 Add layout engine: EdgeHTML 2015-05-07 04:59:01 +07:00
Faisal Salman
3abf465aec changing build flow 2015-05-07 04:21:43 +07:00
Dumitru Uzun
56c90d2134 updated verup script 2015-05-05 20:39:23 +03:00
Dumitru Uzun
dc6bae6aae Updated verup to v1.2.0 and moved its config to package.json 2015-04-30 17:58:30 +03:00
Faisal Salman
1fa7137f1f Fix #111 2015-04-29 11:29:54 +07:00
Faisal Salman
378a298fee Merge pull request #110 from duzun/master
Added a script to bump version in project files. Fix #107
2015-04-28 13:39:17 +07:00
Dumitru Uzun
32db7bfb97 verup adds \n at the end of JSON files 2015-04-20 14:24:20 +03:00
Dumitru Uzun
d1a18c6ff1 Added script to bump version. Eg: npm run verup -- 1.0 2015-04-20 14:19:37 +03:00
Faisal Salman
4887793ee0 Merge pull request #108 from mollases/master
Adding Windows 10 IE 12 to ua-parser (w/ test)
2015-04-19 13:56:17 +07:00
Faisal Salman
b616d0b3d1 Merge pull request #106 from duzun/master
updated email of Dumitru Uzun in package.json
2015-04-19 13:56:09 +07:00
Admas
c7749b3a2a Adding WIndows 10 IE regex
IE 12 for windows 10 uses gets caught as chrome:
https://msdn.microsoft.com/en-us/library/ie/hh869301%28v=vs.85%29.aspx

Now we search for Edge and mark it as IE
2015-04-17 09:23:28 -07:00
Admas
b00b2a7bcf Adding WIndows 10 IE test 2015-04-17 09:21:11 -07:00
Dumitru Uzun
ca4e8ce2e6 update email of Dumitru Uzun; merged from faisalman 2015-04-17 17:33:30 +03:00
Faisal Salman
3d2d8d5d84 Fix jshint eror 2015-04-15 01:39:21 +07:00
Faisal Salman
cce9dc1474 Add meteor support 2015-04-07 02:40:50 +07:00
Faisal Salman
fa6f8de25f Increment patch version to 0.7.4 2015-04-07 01:41:46 +07:00
Faisal Salman
6a284e2670 Temporarily comment device models to be moved soon 2015-04-07 01:37:14 +07:00
Faisal Salman
ad2613d8e9 Create package.js for meteor package 2015-04-07 01:19:14 +07:00
Faisal Salman
866bdc27af Windows 10 test 2015-03-29 10:02:39 +07:00
Faisal Salman
a5cb2d8821 Fix #100: Detect NT 10.0 as Windows 10 2015-03-29 09:57:34 +07:00
Faisal Salman
fe133e4228 Merge pull request #102 from demis-palma/patch-3
Unneeded comma
2015-03-10 22:48:42 +07:00
Faisal Salman
357ea1b42f Merge pull request #101 from demis-palma/patch-1
Character class may not be used inside character range
2015-03-10 22:47:34 +07:00
Demis Palma
89a3a21ce3 Unneeded comma
Removed last comma in array literal
2015-02-27 17:57:27 +00:00
Demis Palma
3c911f2dd4 Character class may not be used inside character range
Additional information and examples at http://stackoverflow.com/questions/15321938/regex-character-class-inside-character-range-failing-intellijs-jslint-inspectio
2015-02-27 17:42:20 +00:00
Faisal Salman
69c688810d Merge from @algenon 2015-02-27 11:55:52 +07:00
Faisal Salman
6b2571eaa3 Merge pull request #94 from d1o/develop
Added Xperia Z, Galaxy, Oppo, Advan, i-mobile
2015-02-27 10:43:57 +07:00
otakuSiD
5dcc4db665 Get rid of duplicate Xiaomi detection 2015-02-26 15:19:09 +02:00
Dmitry Tyschenko
af9fc69161 Added Facebook application browser 2015-02-05 12:31:47 +02:00
Anton Zhiyanov
feed5498eb Refactor Xiaomi regexps 2015-02-02 19:54:46 +03:00
Anton Zhiyanov
2e87b02dda Add Vivaldi browser 2015-02-02 19:53:29 +03:00
Dmitry Tyschenko
f6b22d6654 Added Xperia Z, Galaxy, Oppo, Advan, i-mobile 2015-01-30 11:17:01 +02:00
Faisal Salman
354d29c2b6 Merge pull request #93 from austinpray/master
fixes typeof
2015-01-29 13:05:51 +07:00
Faisal Salman
6402ac67b9 Merge pull request #91 from algenon/develop
Android Browser and Xiaomi devices detection
2015-01-29 13:05:36 +07:00
Austin Pray
7cae802f3c fixes typeof 2015-01-28 13:01:03 -06:00
algenon
5c25229616 Add Android and MIUI Browser to description 2015-01-25 18:26:43 +03:00
algenon
9d383c5395 Add Xiaomi devices 2015-01-25 17:54:39 +03:00
algenon
1eeb1face1 Add Android Browser and Xiaomi MIUI Browser 2015-01-25 17:39:15 +03:00
Faisal Salman
c3ddbe27ae Merge pull request #88 from soundrop/develop
Better detection of Sony Xperia devices
2015-01-10 18:53:46 +07:00
Dumitru Uzun
073b551b90 Merge branch 'master' of https://github.com/faisalman/ua-parser-js 2014-12-27 00:32:02 +02:00
Sylvain Gizard
7d5e50f008 Remove duplication 2014-12-18 16:26:38 +01:00
Sylvain Gizard
294fae589d Remove duplicated test 2014-12-18 16:09:51 +01:00
Sylvain Gizard
d47e1a5e8e Update build 2014-12-18 16:04:31 +01:00
Sylvain Gizard
50c4e3e551 Trailing whitespace 2014-12-18 16:04:24 +01:00
Sylvain Gizard
5002ea0846 Rough detection of Sony Xperia phones and tablets 2014-12-18 16:04:08 +01:00
Faisal Salman
bc4561b1c1 Merge pull request #86 from sgautrea/nexus-9
Adding HTC Nexus 9 recognition
2014-12-03 15:30:16 +07:00
Shane Gautreau
083db7b7d2 Adding test for Nexus 9 recognition 2014-12-02 16:46:04 -05:00
sgautrea
744c9bf0bd Update ua-parser.js
Adding regex for Nexus 9 tablet
2014-12-02 16:08:47 -05:00
Dumitru Uzun
27c17736c2 Closure Compiled 2014-11-20 12:41:15 +02:00
Faisal Salman
4d3656bb9c Merge pull request #81 from duzun/patch-2
Keep global scope clean with AMD. Always check for jQuery global.
2014-11-20 17:40:52 +07:00
Dumitru Uzun
551fbf100c Keep global scope clean with AMD. Always check for jQuery global.
If an AMD environment, don't export `UAParser` to global scope.
Even in AMD environment jQuery exports to global scope. We should catch it even then.
It also can happen then one joins the jQuery source file with other jQuery plugins in a CommonJS env.
2014-11-20 12:32:31 +02:00
Faisal Salman
e725633328 Fix #24 #80 2014-11-20 07:15:18 +07:00
Faisal Salman
d5cf025713 Merge pull request #79 from hmvs/patch-3
Moto X, G, Razr Mobile detection
2014-11-20 07:07:26 +07:00
Vadim Kurachevsky
9256ed4186 Moto X, G, Razr Mobile detection
Moto RAZR: 
Mozilla/5.0 (Linux; Android 4.0.4; XT910 Build/6.7.2-180_SPU-19-TA-11.6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Mobile Safari/537.36
Moto X:
Mozilla/5.0 (Linux; U; Android 4.2; xx-xx; XT1058 Build/13.9.0Q2.X-70-GHOST-ATT_LE-2) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
Moto G:
Mozilla/5.0 (Linux; Android 4.4.2; XT1033 Build/KXB20.25-1.31) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.136 Mobile Safari/537.36
2014-11-19 10:38:48 +02:00
Faisal Salman
70d629ca71 Extract major from version instead of directly using regex 2014-11-10 18:43:04 +07:00
Faisal Salman
0951cebd09 Update patch version to 0.7.3 2014-11-09 21:08:48 +07:00
Faisal Salman
0a2b05c6fd Fix #77: Standardize OS name for Mac OS 2014-11-08 09:55:26 +07:00
Faisal Salman
9e81f03558 Merge branch 'master' of github.com:faisalman/ua-parser-js 2014-11-07 21:51:41 +07:00
Faisal Salman
a04d2c0efc Merge from develop branch 2014-11-07 17:11:31 +07:00
Faisal Salman
152377b390 Add Windows 10 2014-11-07 16:57:52 +07:00
Faisal Salman
d3f1b0eaf7 Increment patch version to 0.7.2 2014-11-07 15:32:38 +07:00
Faisal Salman
a78d3f7d4b Keep license comment when minifying 2014-11-07 15:20:44 +07:00
Faisal Salman
b0ed222114 Fix #54: update mocha version to 1.8.0 2014-11-07 14:56:31 +07:00
Faisal Salman
8c813e15b3 Drop test on 0.8 2014-11-07 14:53:16 +07:00
Faisal Salman
e6c2296d86 Update readme.md 2014-11-07 14:50:10 +07:00
Faisal Salman
577ded5272 Move minified script under /dist directory 2014-11-04 18:09:39 +07:00
Faisal Salman
a455d7be0d Add OS: VectorLinux 2014-10-31 07:04:22 +07:00
Faisal Salman
4222c6c1e0 Add new devices: Pebble & Google Glass 2014-10-26 01:40:55 +07:00
Faisal Salman
2be03bf30c New categories for device: wearable & embedded 2014-10-26 01:33:07 +07:00
Faisal Salman
6c1c202815 Rearranging things 2014-10-26 01:30:39 +07:00
Faisal Salman
d3a0e23945 Add OS: Contiki, Mageia, Linpus, Solaris, OpenVMS 2014-10-24 04:23:40 +07:00
Faisal Salman
6bb2e23924 Add CPU architecture: ARM64, AVR 2014-10-22 01:03:16 +07:00
Faisal Salman
4e41b6e1d0 Change for loop into while 2014-10-22 00:17:51 +07:00
Faisal Salman
b2f54a6b24 Merge pull request #73 from PeterDaveHello/patch-2
Use svg instead of png to get better image quality
2014-10-20 23:59:55 +07:00
Peter Dave Hello
39168a321c Use svg instead of png to get better image quality 2014-10-20 20:51:19 +08:00
Faisal Salman
1cd7427e90 Add new devices: Microsoft Kin, Archos Gamepad, Nvidia Shield, Samsung SmartTV, Sharp Aquos 2014-10-20 01:19:06 +07:00
Faisal Salman
02122f0002 Add new devices: Xbox, Ouya 2014-10-20 00:17:12 +07:00
Faisal Salman
9fe282ed41 Merge remote master branch 2014-10-16 20:01:21 +07:00
Faisal Salman
4617899224 Merge pull request #71 from boneyao/china
ucbrowser qqbrowser
2014-10-15 20:19:22 +07:00
Faisal Salman
cf0ec0f143 Remove KTAs(?) 2014-10-15 11:32:29 +07:00
Faisal Salman
2d885aef26 Increment patch version to 0.7.1 2014-10-15 07:09:25 +07:00
Faisal Salman
851a15d86b Update readme 2014-10-15 00:25:10 +07:00
Faisal Salman
90c85f59f1 User defined regexes first 2014-10-14 23:58:19 +07:00
Faisal Salman
87b7f809c5 Fix #66 2014-10-14 23:40:05 +07:00
Faisal Salman
5d817e372b Hide media players 2014-10-14 23:25:48 +07:00
Faisal Salman
381bbea845 Move extend function inside util 2014-10-14 23:06:59 +07:00
Faisal Salman
309ec34951 Merge branch 'develop' of github.com:faisalman/ua-parser-js into develop 2014-10-14 22:29:28 +07:00
boneyao
fdf865a86f change version 2014-10-14 16:57:57 +08:00
boneyao
af60b4f1a8 ucbrowser qqbrowser 2014-10-14 16:47:10 +08:00
Faisal Salman
8d1791a88b Merge pull request #70 from maurermax/develop
Extending regex when instantiating object
2014-10-07 09:51:19 +07:00
Max Maurer
7e5a6dd262 added myself to the contributors 2014-10-06 17:39:29 +02:00
Max Maurer
d4229ed33b extended to be able to pass in own regexes 2014-10-06 17:30:52 +02:00
Faisal Salman
a7e53ade39 Merge pull request #61 from captainclam/master
Samsung Tablets
2014-10-03 20:55:43 +07:00
Simon Lang
2319649002 include SM-T within Samsung tablet model field. add 2 more tests. 2014-08-25 13:30:18 +10:00
Simon Lang
2b4f19970e test for Samsung SM-T231 2014-08-25 12:36:08 +10:00
Faisal Salman
3fc24a6d7a Merge pull request #60 from hhelwich/master
Fix hyphens in regexp character classes
2014-08-23 22:00:00 +07:00
Hendrik Helwich
6f91063634 Fix hyphens in regexp character classes 2014-08-21 15:59:37 +02:00
Simon Lang
cd3c3e7d2a Samsung Tablets (untested)
e.g. "Mozilla/5.0 (Linux; Android 4.4.2; SM-T700 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.517 Safari/537.36"
2014-08-15 13:01:19 +10:00
Faisal Salman
36de46956b Add Amazon Fire Phone 2014-08-14 08:34:02 +07:00
Faisal Salman
3510f83b4c Add Series40 2014-08-14 08:08:29 +07:00
Faisal Salman
31187b1be1 Merge pull request #58 from CCVonLewin/master
Added Samsung Galaxy Note III
2014-08-14 07:53:17 +07:00
Carl C Von Lewin
6375492be3 Added Samsung Galaxy Note III
Added Samsung Galaxy Note III - phablet to "Samsung mobile" expression. User agent strings; http://www.webapps-online.com/online-tools/user-agent-strings/dv/brand125499/samsung-galaxy-note-iii
2014-08-13 12:44:26 -04:00
Faisal Salman
77e518befb Fix issue #20 2014-08-06 00:19:38 +07:00
Faisal Salman
c6501015b5 Fix issue #42 2014-08-05 23:55:20 +07:00
Faisal Salman
2b96f9b297 Merge pull request #56 from duzun/patch-1
Added Zepto support (aka jQuery)
2014-08-01 02:14:14 +07:00
Dumitru Uzun
86387a2a39 Added Zepto support (aka jQuery)
Added Zepto support (aka jQuery)

http://zeptojs.com/
2014-07-30 20:41:23 +03:00
Faisal Salman
7860d09c79 Added Sailfish, Jolla, Polytron 2014-07-29 02:57:43 +07:00
Faisal Salman
b60ed8c0c6 Merge pull request #55 from otakusid/master
Added Lenovo S5000 and S6000
2014-07-25 23:53:25 +07:00
otakuSiD
3afb471c74 Added Lenovo S5000 and S6000 2014-07-25 18:23:17 +03:00
Faisal Salman
eec75b2cef Merge pull request #53 from banzai-inc/master
Fix trailing comma errors for Google Closure
2014-07-22 12:06:55 +07:00
Kendall Buchanan
bf315c4a08 Fix trailing comma errors for Google Closure 2014-07-21 12:02:49 -06:00
Faisal Salman
ec68ecee4a Increment minor version 2014-06-25 14:15:17 +07:00
28 changed files with 6875 additions and 1745 deletions

12
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: ua-parser-js
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://www.paypal.me/faisalman/']

20
.github/workflows/run-test.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: ua-parser-js-run-test
on: [push, pull_request]
permissions:
contents: read
jobs:
run-test:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, ppc64le]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Run the test
run: |
npm install
npm run test-ci

12
.gitignore vendored
View File

@@ -1,12 +1,18 @@
node_modules/
npm-debug.log
<<<<<<< HEAD
### vim ###
.*.s[a-w][a-z]
*.un~
Session.vim
.netrwhist
*~
.versions
### editors ###
.vscode
.idea
*.sublime-*
### OSX ###
.DS_Store
@@ -14,13 +20,9 @@ Session.vim
.LSOverride
Icon
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
=======
.idea
>>>>>>> baf4bb99b4ef92c71419931e8fd334e34c051e52

3
.jshintrc Normal file
View File

@@ -0,0 +1,3 @@
{
"esversion": 3
}

1
.npmrc Normal file
View File

@@ -0,0 +1 @@
package-lock=false

View File

@@ -1,6 +1,18 @@
arch:
- amd64
- ppc64le
language: node_js
node_js:
- 0.8
- 0.6
- stable
- lts/*
notifications:
email: false
cache:
directories:
- node_modules
sudo: false
script: npm run test-ci

View File

@@ -1,26 +1,17 @@
{
"name": "ua-parser-js",
"version": "0.6.3-ktb",
"authors": [
"Faisal Salman <fyzlman@gmail.com>"
],
"private": false,
"main": "src/ua-parser.js",
"ignore": [
"build",
"node_modules",
"bower_components",
"test",
"tests"
],
"contributors": [
"Faisal Salman <fyzlman@gmail.com>",
"Christopher De Cairos <chris.decairos@gmail.com>",
"John Tantalo <john.tantalo@gmail.com>",
"Jon Buckley <jon@jbuckley.ca>",
"Lee Treveil <leetreveil@gmail.com>"
],
"dependencies": {
}
"name": "ua-parser-js",
"version": "1.0.33",
"authors": [
"Faisal Salman <f@faisalman.com>"
],
"private": false,
"main": "src/ua-parser.js",
"ignore": [
"build",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {}
}

View File

@@ -1,37 +0,0 @@
#!/bin/bash
# dependencies
JSHINT_DIR="node_modules/jshint/bin/jshint"
MOCHA_DIR="node_modules/mocha/bin/mocha"
UGLIFY_DIR="node_modules/uglify-js/bin/uglifyjs"
# check module directory & install if not found
function check_module {
if ! type $2 &> /dev/null
then
echo "$2 is not found"
if ! type "npm" &> /dev/null
then
echo "npm is not installed"
echo "Exiting"
exit 1
else
echo "Installing $1..."
npm install $1
fi
fi
}
check_module "jshint" $JSHINT_DIR
check_module "mocha" $MOCHA_DIR
check_module "uglify-js" $UGLIFY_DIR
echo "Verifiying code..."
$JSHINT_DIR src/ua-parser.js
echo "Running test..."
$MOCHA_DIR -R nyan test/test.js
echo "Minifying script..."
$UGLIFY_DIR src/ua-parser.js > src/ua-parser.min.js
echo "OK"

3
changelog.md Normal file
View File

@@ -0,0 +1,3 @@
# UAParser.js Changelog
## Version 0.8.0

View File

@@ -1,14 +0,0 @@
{
"name": "ua-parser-js",
"version": "0.6.16",
"description": "Lightweight JavaScript-based user-agent string parser",
"keywords": ["user-agent", "parser", "browser", "engine", "os", "device", "cpu"],
"scripts": ["src/ua-parser.js"],
"main": "src/ua-parser.js",
"license": "MIT",
"development": {
"jshint/jshint": "*",
"visionmedia/mocha": "*",
"mishoo/uglifyjs2": "*"
}
}

1
dist/ua-parser.html vendored Normal file
View File

@@ -0,0 +1 @@
<script src="./ua-parser.min.js"></script>

4
dist/ua-parser.min.js vendored Normal file

File diff suppressed because one or more lines are too long

4
dist/ua-parser.pack.js vendored Normal file

File diff suppressed because one or more lines are too long

21
license.md Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2012-2021 Faisal Salman <<f@faisalman.com>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

12
package.js Normal file
View File

@@ -0,0 +1,12 @@
Package.describe({
name: 'faisalman:ua-parser-js',
version: '1.0.33',
summary: 'Lightweight JavaScript-based user-agent string parser',
git: 'https://github.com/faisalman/ua-parser-js.git',
documentation: 'readme.md'
});
Package.onUse(function (api) {
api.addFiles("src/ua-parser.js");
api.export("UAParser");
});

View File

@@ -1,9 +1,9 @@
{
"title": "UAParser.js",
"name": "ua-parser-js",
"version": "0.6.16",
"author": "Faisal Salman <fyzlman@gmail.com> (http://faisalman.com)",
"description": "Lightweight JavaScript-based user-agent string parser",
"version": "1.0.33",
"author": "Faisal Salman <f@faisalman.com> (http://faisalman.com)",
"description": "Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment",
"keywords": [
"user-agent",
"parser",
@@ -11,44 +11,192 @@
"engine",
"os",
"device",
"cpu"
"cpu",
"jquery-plugin",
"ecosystem:jquery"
],
"homepage": "http://github.com/faisalman/ua-parser-js",
"homepage": "https://github.com/faisalman/ua-parser-js",
"contributors": [
"Faisal Salman <fyzlman@gmail.com>",
"Aamir Poonawalla <aamir@urx.com>",
"Admas <mollases@users.noreply.github.com>",
"algenon <m@antonz.ru>",
"Alvin Portillo <alvin@8thwall.com>",
"Amumu <yoyo837@hotmail.com>",
"Andrea Vaghi <andrea.vaghi@jobrapido.com>",
"Anton Zhiyanov <m@antonz.ru>",
"Arturo Mejia <amejia@blim.com>",
"Arun Rama Reddy <arunramareddy@gmail.com>",
"Austin Pray <austin@austinpray.com>",
"Bendeguz <symunona@gmail.com>",
"Benjamin Bertrand <bertrand.design@gmail.com>",
"Benjamin Urban <benjamin.urban@sueddeutsche.de>",
"boneyao <admin@boneyao.com>",
"Carl C Von Lewin <carlchristianlewin@gmail.com>",
"CESAR RAMOS <c@imagenproactiva.com>",
"Chad Killingsworth <ckillingsworth@jackhenry.com>",
"Christopher De Cairos <chris.decairos@gmail.com>",
"Cyrille David <cyrille@qonto.eu>",
"Dario Vladovic <d.vladimyr@gmail.com>",
"David Annez <david.annez@gmail.com>",
"Davit Barbakadze <jayarjo@gmail.com>",
"ddivernois <david-emmanuel.divernois@amadeus.com>",
"Deliaz <D3liaz@gmail.com>",
"Demis Palma <demis.palma@gmail.com>",
"dhoko <aurelien@protonmail.com>",
"dianhe <dianhe@webank.com>",
"dineshks1 <dineshks1@d.kumar44@outlook.com>",
"Dmitry Tyschenko <dtyschenko@gmail.com>",
"Douglas Li <doug@knotch.it>",
"Dumitru Uzun <contact@duzun.me>",
"Dustin <duburns@fanatics.com>",
"Elchin Valiyev <elchin.valiyev@autodesk.com>",
"Emil Hesslow <hesslow@gmail.com>",
"Eric Redon <eric.redon@coox.org>",
"Eric Schrenker <eric.schrenker@gmail.com>",
"Erik Hesselink <hesselink@gmail.com>",
"Fabian Becker <halfdan@xnorfz.de>",
"Faisal Salman <f@faisalman.com>",
"Frédéric Camblor <fcamblor@gmail.com>",
"Frederik Ring <frederik.ring@gmail.com>",
"Gerald Host <me@jacobford.co.uk>",
"Germán M. Bravo <german.mb@gmail.com>",
"Grigory Dmitrenko <grigory@snsk.ru>",
"gulpin <gulping.gulpin@gmail.com>",
"Hendrik Helwich <h.helwich@iplabs.de>",
"Hermann Ebert <ebbmo@HE.local>",
"hr6r <hedian@gmail.com>",
"Igor Topal <i.topal@smartweb.com.ua>",
"Ildar Kamalov <i.kamalov@adguard.com>",
"insanehong <insane.hong@navercorp.com>",
"jackpoll <jackpoll123456@gmail.com>",
"Jake Mc <startswithaj@users.noreply.github.com>",
"JBYoshi <12983479+JBYoshi@users.noreply.github.com>",
"Joey Parrish <joeyparrish@google.com>",
"John Tantalo <john.tantalo@gmail.com>",
"John Yanarella <jmy@codecatalyst.com>",
"Jon Buckley <jon@jbuckley.ca>",
"Lee Treveil <leetreveil@gmail.com>"
"Josh Goldberg <joshuakgoldberg@outlook.com>",
"Junki-Ishida <junki_ishida@dwango.co.jp>",
"Kendall Buchanan <kendall@kendagriff.com>",
"Lee Treveil <leetreveil@gmail.com>",
"leonardo <leofiore@libero.it>",
"Levente Balogh <balogh.levente.hu@gmail.com>",
"Liam Quinn <lquinn@blackberry.com>",
"Lithin <lithin@webklipper.com>",
"ll-syber <670159357@qq.com>",
"Loris Guignard <loris.guignard@gmail.com>",
"Lukas Drgon <lukas.drgon@gmail.com>",
"Lukas Eipert <leipert@users.noreply.github.com>",
"Malash <i@malash.me>",
"Martynas <martynas@firmfirm.co>",
"Masahiko Sato <masasato@yahoo-corp.jp>",
"Matt Brophy <matt@brophy.org>",
"Matthew Origer <karatecowboy@gmail.com>",
"Maximilian Haupt <mail@maximilianhaupt.com>",
"Max Maurer <maxemanuel.maurer@gmail.com>",
"Max Nordlund <max.nordlund@gmail.com>",
"Michael Hess <mhess@connectify.me>",
"MimyyK <michele.marais@hakisa.com>",
"naoh <naoh.cs03g@nctu.edu.tw>",
"Nicholas Ionata <nionata@ufl.edu>",
"Nikhil Motiani <nikhil.motiani@outlook.com>",
"Nik Rolls <nik@rolls.cc>",
"nionata <n.ionata129@gmail.com>",
"niris <nirisix@gmail.com>",
"Nobuo Okada <nookada@yahoo-corp.jp>",
"o.drapeza <o.drapeza@tinkoff.ru>",
"otakuSiD <otakusid@gmail.com>",
"patrick-nurt <github@pereira.dk>",
"Pavel Studeny <studeny@avast.com>",
"Peter Dave Hello <PeterDaveHello@users.noreply.github.com>",
"philippsimon <github@philippsimon.de>",
"Pieter Hendrickx <pieter.hendrickx@belfius.be>",
"Piper Chester <piperchester@gmail.com>",
"Queen Vinyl Darkscratch <vinyldarkscratch@gmail.com>",
"Raine Makelainen <raine.makelainen@jolla.com>",
"Raman Savaryn <homeneartheocean@gmail.com>",
"Robert Tod <robert@qubit.com>",
"roman.savarin <roman.savarin@skywindgroup.com>",
"Ron Korland <ron@testim.io>",
"Ross Noble <rosshnoble@gmail.com>",
"ruicong <466403866@qq.com>",
"Sandro Sonntag <sandro.sonntag@adorsys.de>",
"sgautrea <shanegautreau@gmail.com>",
"Shane Gautreau <sgautrea@opentext.com>",
"Shane Thacker <shane@steadymade.com>",
"Shreedhar <shreedhar@uber.com>",
"Simon Eisenmann <simon@longsleep.org>",
"Simon Lang <me@simonlang.org>",
"Stiekel <histkc@gmail.com>",
"sUP <dani3l@gmail.com>",
"Sylvain Gizard <sylvain.gizard@gmail.com>",
"szchenghuang <szchenghuang@gmail.com>",
"Tanguy Krotoff <tkrotoff@gmail.com>",
"Tony Tomarchio <tony@tomarchio.cc>",
"Ulrich Schmidt <u.schmidt@velian.de>",
"Vadim Kurachevsky <vadim@hmvs.org>",
"Yılmaz <yilmazdemir36@gmail.com>",
"yuanyang <work_yuanyang@163.com>",
"Yun Young-jin <yupmin@yupmin-office-macmini.local>",
"Zach Bjornson <zbbjornson@gmail.com>"
],
"main": "src/ua-parser.js",
"files": [
"dist",
"src"
],
"scripts": {
"test": "./build/build.sh"
"build": "uglifyjs src/ua-parser.js -o dist/ua-parser.min.js --comments '/^ UA/' && uglifyjs src/ua-parser.js -o dist/ua-parser.pack.js --comments '/^ UA/' --compress --mangle",
"test": "jshint src/ua-parser.js && mocha -R nyan test/test.js",
"test-ci": "jshint src/ua-parser.js && mocha -R spec test/test.js",
"verup": "node ./node_modules/verup",
"version": "node ./node_modules/verup 0"
},
"verup": {
"files": [
"bower.json",
"package.js",
"src/ua-parser.js"
],
"regs": [
"^((?:\\$|(\\s*\\*\\s*@)|(\\s*(?:var|,)?\\s+))(?:LIBVERSION|version)[\\s\\:='\"]+)([0-9]+(?:\\.[0-9]+){2,2})",
"^(\\/?\\s?\\*.*v)([0-9]+(?:\\.[0-9]+){2,2})"
]
},
"devDependencies": {
"jshint": "~1.1.0",
"mocha": "~1.7.1",
"uglify-js": "~1.3.4"
"@babel/parser": "7.15.8",
"@babel/traverse": "7.15.4",
"jshint": "~2.12.0",
"mocha": "~8.2.0",
"requirejs": "^2.3.2",
"safe-regex": "^2.1.1",
"uglify-js": "~3.12.0",
"verup": "^1.3.x"
},
"repository" : {
"repository": {
"type": "git",
"url": "https://github.com/faisalman/ua-parser-js.git"
},
"licenses": [
{
"type": "GPLv2",
"url": "http://www.gnu.org/licenses/gpl-2.0.html"
},
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
],
"license": "MIT",
"engines": {
"node": "*"
},
"directories": {
"lib": "src",
"dist": "dist",
"src": "src",
"test": "test"
}
},
"bugs": "https://github.com/faisalman/ua-parser-js/issues",
"demo": "https://faisalman.github.io/ua-parser-js",
"download": "https://raw.github.com/faisalman/ua-parser-js/master/dist/ua-parser.min.js",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/ua-parser-js"
},
{
"type": "paypal",
"url": "https://paypal.me/faisalman"
}
]
}

324
readme.md
View File

@@ -1,49 +1,122 @@
<p align="center">
<img src="https://raw.githubusercontent.com/faisalman/ua-parser-js/gh-pages/images/logo.png" width="256" height="256">
</p>
<p align="center">
<a href="https://travis-ci.org/faisalman/ua-parser-js"><img src="https://travis-ci.org/faisalman/ua-parser-js.svg?branch=master"></a>
<a href="https://www.npmjs.com/package/ua-parser-js"><img src="https://img.shields.io/npm/v/ua-parser-js.svg"></a>
<a href="https://www.npmjs.com/package/ua-parser-js"><img src="https://img.shields.io/npm/dw/ua-parser-js.svg"></a>
<a href="https://www.jsdelivr.com/package/npm/ua-parser-js"><img src="https://data.jsdelivr.com/v1/package/npm/ua-parser-js/badge"></a>
<a href="https://cdnjs.com/libraries/UAParser.js"><img src="https://img.shields.io/cdnjs/v/UAParser.js.svg"></a>
</p>
# UAParser.js
Lightweight JavaScript-based User-Agent string parser. Supports browser & node.js environment. Also available as Component package, Bower package, jQuery.ua, & AMD module
JavaScript library to detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data with relatively small footprint (~17KB minified, ~6KB gzipped) that can be used either in browser (client-side) or node.js (server-side).
[![Build Status](https://travis-ci.org/faisalman/ua-parser-js.png?branch=master)](https://travis-ci.org/faisalman/ua-parser-js)
* Author : Faisalman <<fyzlman@gmail.com>>
* Demo : http://faisalman.github.com/ua-parser-js
* Author : Faisal Salman <<f@faisalman.com>>
* Demo : https://faisalman.github.io/ua-parser-js
* Source : https://github.com/faisalman/ua-parser-js
## Features
# Documentation
### UAParser([user-agent][,extensions])
typeof `user-agent` "string".
Extract detailed type of web browser, layout engine, operating system, cpu architecture, and device purely from user-agent string with relatively lightweight footprint (~7KB minified / ~3KB gzipped). Written in vanilla js, which means it doesn't depends on any other library.
typeof `extensions` "array".
![It's over 9000](https://pbs.twimg.com/media/A9LpEG6CIAA5VrT.jpg)
In The Browser environment you dont need to pass the user-agent string to the function, you can just call the funtion and it should automatically get the string from the `window.navigator.userAgent`, but that is not the case in nodejs. The user-agent string must be passed in nodejs for the function to work.
Usually you can find the user agent in:
`request.headers["user-agent"]`.
## Constructor
When you call `UAParser` with the `new` keyword `UAParser` will return a new instance with an empty result object, you have to call one of the available methods to get the information from the user-agent string.
Like so:
* `new UAParser([uastring][,extensions])`
```js
let parser = new UAParser("user-agent"); // you need to pass the user-agent for nodejs
console.log(parser); // {}
let parserResults = parser.getResult();
console.log(parserResults);
/** {
"ua": "",
"browser": {},
"engine": {},
"os": {},
"device": {},
"cpu": {}
} */
```
When you call UAParser without the `new` keyword, it will automatically call `getResult()` function and return the parsed results.
* `UAParser([uastring][,extensions])`
* returns result object `{ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, os: {} }`
## Methods
#### Methods table
The methods are self explanatory, here's a small overview on all the available methods:
* `getResult()` - returns all function object calls, user-agent string, browser info, cpu, device, engine, os:
`{ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, os: {} }`.
* `getBrowser()` - returns the browser name and version.
* `getDevice()` - returns the device model, type, vendor.
* `getEngine()` - returns the current browser engine name and version.
* `getOS()` - returns the running operating system name and version.
* `getCPU()` - returns CPU architectural design name.
* `getUA()` - returns the user-agent string.
* `setUA(user-agent)` - set a custom user-agent to be parsed.
---
* `getResult()`
* returns `{ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, os: {} }`
* `getBrowser()`
* returns `{ name: '', major: '', version: '' }`
* returns `{ name: '', version: '' }`
```
```sh
# Possible 'browser.name':
Amaya, Arora, Avant, Baidu, Blazer, Bolt, Camino, Chimera, Chrome, Chromium,
Comodo Dragon, Conkeror, Dillo, Dolphin, Doris, Epiphany, Fennec, Firebird,
Firefox, Flock, GoBrowser, iCab, ICE Browser, IceApe, IceCat, IceDragon,
Iceweasel, IE [Mobile], Iron, Jasmine, K-Meleon, Konqueror, Kindle, Links,
Lunascape, Lynx, Maemo, Maxthon, Midori, Minimo, [Mobile] Safari, Mosaic, Mozilla,
Netfront, Netscape, NetSurf, Nokia, OmniWeb, Opera [Mini/Mobi/Tablet], Phoenix,
Polaris, QQBrowser, RockMelt, Silk, Skyfire, SeaMonkey, SlimBrowser, Swiftfox,
Tizen, UCBrowser, w3m, Yandex
2345Explorer, 360 Browser, Amaya, Android Browser, Arora, Avant, Avast, AVG,
BIDUBrowser, Baidu, Basilisk, Blazer, Bolt, Brave, Bowser, Camino, Chimera,
Chrome Headless, Chrome WebView, Chrome, Chromium, Comodo Dragon, Dillo,
Dolphin, Doris, DuckDuckGo, Edge, Electron, Epiphany, Facebook, Falkon, Fennec,
Firebird, Firefox [Focus/Reality], Flock, Flow, GSA, GoBrowser, Huawei Browser,
ICE Browser, IE, IEMobile, IceApe, IceCat, IceDragon, Iceweasel, Instagram,
Iridium, Iron, Jasmine, K-Meleon, Kindle, Klar, Konqueror, LBBROWSER, Line,
LinkedIn, Links, Lunascape, Lynx, MIUI Browser, Maemo Browser, Maemo, Maxthon,
MetaSr Midori, Minimo, Mobile Safari, Mosaic, Mozilla, NetFront, NetSurf, Netfront,
Netscape, NokiaBrowser, Obigo, Oculus Browser, OmniWeb, Opera Coast,
Opera [Mini/Mobi/Tablet], PaleMoon, PhantomJS, Phoenix, Polaris, Puffin, QQ,
QQBrowser, QQBrowserLite, Quark, QupZilla, RockMelt, Safari, Sailfish Browser,
Samsung Browser, SeaMonkey, Silk, Skyfire, Sleipnir, Slim, SlimBrowser, Swiftfox,
Tesla, Tizen Browser, UCBrowser, UP.Browser, Vivaldi, Waterfox, WeChat, Weibo,
Yandex, baidu, iCab, w3m, Whale Browser...
# 'browser.version' & 'browser.major' determined dynamically
# 'browser.version' determined dynamically
```
* `getDevice()`
* returns `{ model: '', type: '', vendor: '' }`
* returns `{ model: '', type: '', vendor: '' }`
```
```sh
# Possible 'device.type':
console, mobile, tablet
console, mobile, tablet, smarttv, wearable, embedded
##########
# NOTE: 'desktop' is not a possible device type.
# UAParser only reports info directly available from the UA string, which is not the case for 'desktop' device type.
# If you wish to detect desktop devices, you must handle the needed logic yourself.
# You can read more about it in this issue: https://github.com/faisalman/ua-parser-js/issues/182
##########
# Possible 'device.vendor':
Acer, Alcatel, Apple, Asus, BenQ, BlackBerry, Dell, GeeksPhone, HP, HTC, Huawei,
Lenovo, LG, Meizu, Motorola, Nexian, Nintendo, Nokia, Palm, Panasonic,
RIM, Samsung, Siemens, Sony-Ericsson, Sprint, ZTE
Acer, Alcatel, Amazon, Apple, Archos, ASUS, AT&T, BenQ, BlackBerry, Dell,
Essential, Fairphone, GeeksPhone, Google, HP, HTC, Huawei, Jolla, Lenovo, LG,
Meizu, Microsoft, Motorola, Nexian, Nintendo, Nokia, Nvidia, OnePlus, OPPO, Ouya,
Palm, Panasonic, Pebble, Polytron, Realme, RIM, Roku, Samsung, Sharp, Siemens,
Sony[Ericsson], Sprint, Tesla, Vivo, Vodafone, Xbox, Xiaomi, Zebra, ZTE, ...
# 'device.model' determined dynamically
```
@@ -51,10 +124,10 @@ RIM, Samsung, Siemens, Sony-Ericsson, Sprint, ZTE
* `getEngine()`
* returns `{ name: '', version: '' }`
```
```sh
# Possible 'engine.name'
Amaya, Gecko, iCab, KHTML, Links, Lynx, NetFront, NetSurf, Presto, Tasman,
Trident, w3m, WebKit
Amaya, Blink, EdgeHTML, Flow, Gecko, Goanna, iCab, KHTML, Links, Lynx, NetFront,
NetSurf, Presto, Tasman, Trident, w3m, WebKit
# 'engine.version' determined dynamically
```
@@ -62,14 +135,16 @@ Trident, w3m, WebKit
* `getOS()`
* returns `{ name: '', version: '' }`
```
```sh
# Possible 'os.name'
AIX, Amiga OS, Android, Arch, Bada, BeOS, BlackBerry, CentOS, Chromium OS,
Fedora, Firefox OS, FreeBSD, Debian, DragonFly, Gentoo, GNU, Haiku, Hurd, iOS,
Joli, Linux, Mac OS, Mandriva, MeeGo, Minix, Mint, Morph OS, NetBSD, Nintendo,
OpenBSD, OS/2, Palm, PCLinuxOS, Plan9, Playstation, QNX, RedHat, RIM Tablet OS,
RISC OS, Slackware, Solaris, SUSE, Symbian, Tizen, Ubuntu, UNIX, WebOS,
Windows [Phone/Mobile], Zenwalk
AIX, Amiga OS, Android[-x86], Arch, Bada, BeOS, BlackBerry, CentOS, Chromium OS,
Contiki, Fedora, Firefox OS, FreeBSD, Debian, Deepin, DragonFly, elementary OS,
Fuchsia, Gentoo, GhostBSD, GNU, Haiku, HarmonyOS, HP-UX, Hurd, iOS, Joli, KaiOS,
Linpus, Linspire,Linux, Mac OS, Maemo, Mageia, Mandriva, Manjaro, MeeGo, Minix,
Mint, Morph OS, NetBSD, Nintendo, OpenBSD, OpenVMS, OS/2, Palm, PC-BSD, PCLinuxOS,
Plan9, PlayStation, QNX, Raspbian, RedHat, RIM Tablet OS, RISC OS, Sabayon,
Sailfish, Series40, Slackware, Solaris, SUSE, Symbian, Tizen, Ubuntu, Unix,
VectorLinux, WebOS, Windows [Phone/Mobile], Zenwalk, ...
# 'os.version' determined dynamically
```
@@ -77,39 +152,39 @@ Windows [Phone/Mobile], Zenwalk
* `getCPU()`
* returns `{ architecture: '' }`
```
```sh
# Possible 'cpu.architecture'
68k, amd64, arm, ia32, ia64, irix, irix64, mips, mips64, pa-risc, ppc, sparc, sparc64
68k, amd64, arm[64/hf], avr, ia[32/64], irix[64], mips[64], pa-risc, ppc, sparc[64]
```
* `getResult()`
* returns `{ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, os: {} }`
* `getUA()`
* returns UA string of current instance
* `setUA(uastring)`
* set & parse UA string
## Example
* `setUA(uastring)`
* set UA string to be parsed
* returns current instance
# Usage
## Using HTML
```html
<!doctype html>
<html>
<head>
<script type="text/javascript" src="ua-parser.min.js"></script>
<script type="text/javascript">
<script src="ua-parser.min.js"></script>
<script>
var parser = new UAParser();
// by default it takes ua string from current browser's window.navigator.userAgent
var parser = new UAParser();
console.log(parser.getResult());
/*
/// this will print an object structured like this:
/// This will print an object structured like this:
{
ua: "",
browser: {
name: "",
version: "",
major: ""
major: "" //@deprecated
},
engine: {
name: "",
@@ -129,23 +204,23 @@ Windows [Phone/Mobile], Zenwalk
}
}
*/
// Default result depends on current window.navigator.userAgent value
// let's test a custom user-agent string as an example
var uastring = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 Chrome/15.0.874.106 Safari/535.2";
parser.setUA(uastring);
// Now let's try a custom user-agent string as an example
var uastring1 = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 Chrome/15.0.874.106 Safari/535.2";
parser.setUA(uastring1);
var result = parser.getResult();
// this will also produce the same result (without instantiation):
// var result = UAParser(uastring);
// You can also use UAParser constructor directly without having to create an instance:
// var result = UAParser(uastring1);
console.log(result.browser); // {name: "Chromium", major: "15", version: "15.0.874.106"}
console.log(result.browser); // {name: "Chromium", version: "15.0.874.106"}
console.log(result.device); // {model: undefined, type: undefined, vendor: undefined}
console.log(result.os); // {name: "Ubuntu", version: "11.10"}
console.log(result.os.version); // "11.10"
console.log(result.engine.name); // "WebKit"
console.log(result.cpu.architecture); // "amd64"
// do some other tests
// Do some other tests
var uastring2 = "Mozilla/5.0 (compatible; Konqueror/4.1; OpenBSD) KHTML/4.1.4 (like Gecko)";
console.log(parser.setUA(uastring2).getBrowser().name); // "Konqueror"
console.log(parser.getOS()); // {name: "OpenBSD", version: undefined}
@@ -163,60 +238,51 @@ Windows [Phone/Mobile], Zenwalk
</html>
```
### Using node.js
## Using node.js
Note: Device information is not available in the NodeJS environment.
```sh
$ npm install ua-parser-js
```
```js
var UAParser = require('ua-parser-js');
var parser = new UAParser();
var ua = request.headers['user-agent']; // user-agent header from an HTTP request
console.log(parser.setUA(ua).getResult());
var http = require('http');
var parser = require('ua-parser-js');
http.createServer(function (req, res) {
// get user-agent header
var ua = parser(req.headers['user-agent']);
// write the result as response
res.end(JSON.stringify(ua, null, ' '));
})
.listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
```
### Using requirejs
```js
require(['ua-parser'], function(UAParser) {
var parser = new UAParser();
console.log(parser.getResult());
});
```
### Using component
## Using TypeScript
```sh
$ component install faisalman/ua-parser-js
$ npm install --save @types/ua-parser-js
# Download TS type definition from DefinitelyTyped repository:
# https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ua-parser-js
```
## Using jQuery/Zepto ($.ua)
Although written in vanilla js, this library will automatically detect if jQuery/Zepto is present and create `$.ua` object (with values based on its User-Agent) along with `window.UAParser` constructor. To get/set user-agent you can use: `$.ua.get()` / `$.ua.set(uastring)`.
```js
var UAParser = require('ua-parser-js');
var parser = new UAParser();
console.log(parser.getResult());
```
// Say we are in a browser with default user-agent: 'Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; Sprint APA7373KT Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0':
### Using bower
```sh
$ bower install ua-parser-js
```
### Using jQuery.ua
Although written in vanilla js (which means it doesn't depends on jQuery), this library will automatically detect if jQuery is present and create `$.ua` object based on browser's user-agent (although in case you need, `window.UAParser` constructor is still present). To get/set user-agent you can use: `$.ua.get()` / `$.ua.set(uastring)`.
```js
// In browser with default user-agent: 'Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; Sprint APA7373KT Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0':
// Do some tests
// Get the details
console.log($.ua.device); // {vendor: "HTC", model: "Evo Shift 4G", type: "mobile"}
console.log($.ua.os); // {name: "Android", version: "2.3.4"}
console.log($.ua.os.name); // "Android"
console.log($.ua.get()); // "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; Sprint APA7373KT Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0"
// reset to custom user-agent
// Now lets try to reset to another custom user-agent
$.ua.set('Mozilla/5.0 (Linux; U; Android 3.0.1; en-us; Xoom Build/HWI69) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13');
// Test again
@@ -224,36 +290,70 @@ console.log($.ua.browser.name); // "Safari"
console.log($.ua.engine.name); // "Webkit"
console.log($.ua.device); // {vendor: "Motorola", model: "Xoom", type: "tablet"}
console.log(parseInt($.ua.browser.version.split('.')[0], 10)); // 4
// Add class to <body> tag
// <body class="ua-browser-safari ua-devicetype-tablet">
$('body').addClass('ua-browser-' + $.ua.browser.name + ' ua-devicetype-' + $.ua.device.type);
```
## Development
## Using Extension
Install dependencies
* `UAParser([uastring,] extensions)`
```sh
$ npm install jshint
$ npm install mocha
$ npm install uglify-js
```js
// Example:
var myOwnListOfBrowsers = [
[/(mybrowser)\/([\w\.]+)/i], [UAParser.BROWSER.NAME, UAParser.BROWSER.VERSION]
];
var myParser = new UAParser({ browser: myOwnListOfBrowsers });
var myUA = 'Mozilla/5.0 MyBrowser/1.3';
console.log(myParser.setUA(myUA).getBrowser()); // {name: "MyBrowser", version: "1.3"}
```
Verify, test, & minify script
# Development
```sh
$ ./build/build.sh
```
## Sponsors
## License
<a href="https://opencollective.com/ua-parser-js"><img src="https://opencollective.com/ua-parser-js/tiers/backers.svg?avatarHeight=64" height="80"/></a> <a href="https://opencollective.com/ua-parser-js"><img src="https://opencollective.com/ua-parser-js/tiers/sponsors.svg?avatarHeight=64" height="80"/></a>
Dual licensed under GPLv2 & MIT
<a href="https://www.paypal.me/faisalman/"><img src="https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg" height="40"></a>
Copyright © 2012-2013 Faisalman <<fyzlman@gmail.com>>
## Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
<a href="https://github.com/faisalman/ua-parser-js/graphs/contributors">
<img src="https://contrib.rocks/image?repo=faisalman/ua-parser-js" />
</a>
The above copyright notice and this permission notice shall be included in all
Made with [contributors-img](https://contrib.rocks).
## How To Contribute
* Fork and clone this repository
* Make some changes as required
* Write unit test to showcase its functionality
* Run the test suites to make sure it's not breaking anything `$ npm test`
* Submit a pull request under `develop` branch
# License
MIT License
Copyright (c) 2012-2021 Faisal Salman <<f@faisalman.com>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

5
security.md Normal file
View File

@@ -0,0 +1,5 @@
# Security Policy
## Reporting a Vulnerability
Please report security issues to `f@faisalman.com`

1114
src/ua-parser.js Normal file → Executable file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -40,13 +40,93 @@
}
},
{
"desc" : "ARMv6",
"desc" : "ARM",
"ua" : "Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 635) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537",
"expect" :
{
"architecture" : "arm"
}
},
{
"desc" : "ARMv61",
"ua" : "Mozilla/5.0 (X11; U; Linux armv61; en-US; rv:1.9.1b2pre) Gecko/20081015 Fennec/1.0a1",
"expect" :
{
"architecture" : "arm"
}
},
{
"desc" : "ARMv7",
"ua" : "Mozilla/5.0 (Linux ARMv7) WebKitGTK+/3.4.9 vimprobable2",
"expect" :
{
"architecture" : "arm"
}
},
{
"desc" : "ARMv7l",
"ua" : "Mozilla/5.0 (SMART-TV; X11; Linux armv7l) AppleWebKit/537.42 (KHTML, like Gecko) Chromium/25.0.1349.2 Chrome/25.0.1349.2 Safari/537.42",
"expect" :
{
"architecture" : "arm"
}
},
{
"desc" : "ARMv7l",
"ua" : "Mozilla/5.0 (X11; CrOS armv7l 9765.85.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.123 Safari/537.36",
"expect" :
{
"architecture" : "arm"
}
},
{
"desc" : "Nokia N900 Linux mobile",
"ua" : "Mozilla/5.0 (Maemo; Linux armv7l; rv:10.0) Gecko/20100101 Firefox/10.0 Fennec/10.0",
"expect" :
{
"architecture" : "arm"
}
},
{
"desc" : "ARMEABI",
"ua" : "[FBAN/FB4A;FBAV/237.0.0.44.120;FBBV/170693408;FBDM/{density=1.75,width=720,height=1280};FBLC/en_US;FBRV/172067074;FBCR/ ;FBMF/samsung;FBBD/samsung;FBPN/com.facebook.katana;FBDV/SM-S367VL;FBSV/9;FBBK/1;FBOP/19;FBCA/armeabi-v7a:armeabi;]",
"expect" :
{
"architecture" : "arm"
}
},
{
"desc" : "ARMv8",
"ua" : "Mozilla/5.0 (X11; Linux armv8l; rv:45.0) Gecko/20100101 Firefox/45.0",
"expect" :
{
"architecture" : "arm64"
}
},
{
"desc" : "AARCH64",
"ua" : "Mozilla/5.0 (X11; CrOS aarch64 13310.93.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.133 Safari/537.36",
"expect" :
{
"architecture" : "arm64"
}
},
{
"desc" : "ARM64",
"ua" : "Mozilla/5.0 (Windows NT 10.0; ARM64; RM-1096) AppleWebKit/537.36 (KHTML like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393",
"expect" :
{
"architecture" : "arm64"
}
},
{
"desc" : "ARM64",
"ua" : "Mozilla/5.0 (Linux; arm_64; Android 9; HRY-LX1T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 YaBrowser/19.12.1.121.00 Mobile Safari/537.36",
"expect" :
{
"architecture" : "arm64"
}
},
{
"desc" : "Pocket PC",
"ua" : "Opera/9.7 (Windows Mobile; PPC; Opera Mobi/35166; U; en) Presto/2.2.1",
@@ -79,6 +159,14 @@
"architecture" : "ppc"
}
},
{
"desc" : "Mac OS X on PowerPC using Firefox",
"ua" : "Mozilla/5.0 (Macintosh; PPC Mac OS X x.y; rv:10.0) Gecko/20100101 Firefox/10.0",
"expect" :
{
"architecture" : "ppc"
}
},
{
"desc" : "UltraSPARC",
"ua" : "Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5",
@@ -87,6 +175,14 @@
"architecture" : "sparc"
}
},
{
"desc" : "sparc64",
"ua" : "ELinks (0.4.3; NetBSD 3.0.2PATCH sparc64; 141x19)",
"expect" :
{
"architecture" : "sparc64"
}
},
{
"desc" : "QuickTime",
"ua" : "QuickTime/7.5.6 (qtver=7.5.6;cpu=IA32;os=Mac 10.5.8)",
@@ -104,19 +200,11 @@
}
},
{
"desc" : "KTB iPad",
"ua" : "APP-BE Test/1.0 (iPad; Apple; CPU iPhone OS 7_0_2 like Mac OS X)",
"expect" :
"desc" : "IRIX64",
"ua" : "Mozilla/4.8C-SGI [en] (X11; U; IRIX64 6.5 IP27",
"expect" :
{
"architecture" : "undefined"
}
},
{
"desc" : "KTB-Nexus 5",
"ua" : "APP-My App/1.0 (Linux; Android 4.2.1; Nexus 5 Build/JOP40D)",
"expect" :
{
"architecture" : "undefined"
"architecture" : "irix64"
}
}
]

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,31 @@
[
{
"desc" : "Blink",
"ua" : "Mozilla/5.0 (Linux; Android 7.0; SM-G920I Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) OculusBrowser/3.4.9 SamsungBrowser/4.0 Chrome/57.0.2987.146 Mobile VR Safari/537.36",
"expect" :
{
"name" : "Blink",
"version" : "57.0.2987.146"
}
},
{
"desc" : "EdgeHTML",
"ua" : "Mozilla/5.0 (Windows NT 6.4; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36 Edge/12.0",
"expect" :
{
"name" : "EdgeHTML",
"version" : "12.0"
}
},
{
"desc" : "Flow",
"ua" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) EkiohFlow/5.7.4.30559 Flow/5.7.4 (like Gecko Firefox/53.0 rv:53.0)",
"expect" :
{
"name" : "Flow",
"version" : "5.7.4.30559"
}
},
{
"desc" : "Gecko",
"ua" : "Mozilla/5.0 (X11; Linux x86_64; rv:2.0b9pre) Gecko/20110111 Firefox/4.0b9pre",
@@ -8,6 +35,15 @@
"version" : "2.0b9pre"
}
},
{
"desc" : "Goanna",
"ua" : "Mozilla/5.0 (Windows NT 5.1; rv:38.9) Gecko/20100101 Goanna/2.2 Firefox/38.9 PaleMoon/26.5.0",
"expect" :
{
"name" : "Goanna",
"version" : "2.2"
}
},
{
"desc" : "KHTML",
"ua" : "Mozilla/5.0 (compatible; Konqueror/4.5; FreeBSD) KHTML/4.5.4 (like Gecko)",
@@ -63,22 +99,57 @@
}
},
{
"desc" : "KTA Mobile App",
"ua" : "APP-BE Test/1.0 (iPad; Apple; CPU iPhone OS 7_0_2 like Mac OS X)",
"desc" : "WebKit",
"ua" : "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/27.0.1453.110 Safari/537.36",
"expect" :
{
"name" : "Mobile-App",
"version" : "1.0"
"name" : "WebKit",
"version" : "537.36"
}
},
{
"desc" : "KTB-Nexus 5",
"ua" : "APP-My App/1.0 (Linux; Android 4.2.1; Nexus 5 Build/JOP40D)",
"desc" : "WebOS TV 5.x",
"ua" : "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 WebAppManager",
"expect" :
{
"name" : "Mobile-App",
"version" : "1.0"
"name" : "Blink",
"version" : "68.0.3440.106"
}
},
{
"desc" : "WebOS TV 4.x",
"ua" : "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.34 Safari/537.36 WebAppManager",
"expect" :
{
"name" : "Blink",
"version" : "53.0.2785.34"
}
},
{
"desc" : "WebOS TV 3.x",
"ua" : "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.2.1 Chrome/38.0.2125.122 Safari/537.36 WebAppManager",
"expect" :
{
"name" : "Blink",
"version" : "38.0.2125.122"
}
},
{
"desc" : "WebOS TV 2.x",
"ua" : "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/538.2 (KHTML, like Gecko) Large Screen WebAppManager Safari/538.2",
"expect" :
{
"name" : "WebKit",
"version" : "538.2"
}
},
{
"desc" : "WebOS TV 1.x",
"ua" : "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.41 (KHTML, like Gecko) Large Screen WebAppManager Safari/537.41",
"expect" :
{
"name" : "WebKit",
"version" : "537.41"
}
}
]

582
test/mediaplayer-test.json Normal file
View File

@@ -0,0 +1,582 @@
[
{
"desc" : "Coremedia",
"ua" : "Apple Mac OS X v10.6.4 CoreMedia v1.0.0.10F2108",
"expect" :
{
"name" : "CoreMedia",
"version" : "1.0.0.10F2108",
"major" : "1"
}
},
{
"desc" : "AppleCoreMedia",
"ua" : "AppleCoreMedia/1.0.0.10A403 (iPad; U; CPU OS 6_0 like Mac OS X; it_it)",
"expect" :
{
"name" : "AppleCoreMedia",
"version" : "1.0.0.10A403",
"major" : "1"
}
},
{
"desc" : "AppleTv",
"ua" : "AppleTV/3.0.2 (Macintosh; Intel Mac OS X 10.4.7) AppleWebKit/528.18",
"expect" :
{
"name" : "WebKit",
"version" : "528.18",
"major" : "528"
}
},
{
"desc" : "Aqualung",
"ua" : "Aqualung/R-1114",
"expect" :
{
"name" : "Aqualung",
"version" : "R-1114",
"major" : "undefined"
}
},
{
"desc" : "Ares",
"ua" : "Ares 2.2.4.3048",
"expect" :
{
"name" : "Ares",
"version" : "2.2.4.3048",
"major" : "2"
}
},
{
"desc" : "Audacious",
"ua" : "Audacious/3.2.2 neon/0.29.3",
"expect" :
{
"name" : "Audacious",
"version" : "3.2.2",
"major" : "3"
}
},
{
"desc" : "AudiMusicStream",
"ua" : "AudiMusicStream/3020.130826151911",
"expect" :
{
"name" : "AudiMusicStream",
"version" : "3020.130826151911",
"major" : "3020"
}
},
{
"desc" : "BASS",
"ua" : "BASS/2.4",
"expect" :
{
"name" : "BASS",
"version" : "2.4",
"major" : "2"
}
},
{
"desc" : "BSPlayer",
"ua" : "BSPlayer/2",
"expect" :
{
"name" : "BSPlayer",
"version" : "2",
"major" : "2"
}
},
{
"desc" : "Core",
"ua" : "CORE/6.506.4.1",
"expect" :
{
"name" : "CORE",
"version" : "6.506.4.1",
"major" : "6"
}
},
{
"desc" : "Clementine",
"ua" : "Clementine 1.1",
"expect" :
{
"name" : "Clementine",
"version" : "1.1",
"major" : "1"
}
},
{
"desc" : "Dalvik",
"ua" : "Dalvik/1.2.0 (Linux; U; Android 2.2.1; GT-S5830L Build/FROYO)",
"expect" :
{
"name" : "Dalvik",
"version" : "1.2.0",
"major" : "1"
}
},
{
"desc" : "NexPlayer",
"ua" : "E97510d/ Player/NexPlayer 4.0",
"expect" :
{
"name" : "NexPlayer",
"version" : "4.0",
"major" : "4"
}
},
{
"desc" : "FLRP",
"ua" : "FLRP/2.5 CFNetwork/609.1.4 Darwin/13.0.0",
"expect" :
{
"name" : "Flip Player",
"version" : "2.5",
"major" : "2"
}
},
{
"desc" : "FStream",
"ua" : "FStream",
"expect" :
{
"name" : "FStream",
"version" : "undefined",
"major" : "undefined"
}
},
{
"desc" : "GStreamer",
"ua" : "GStreamer souphttpsrc (compatible; LG NetCast.TV-2012) libsoup/2.34.2",
"expect" :
{
"name" : "GStreamer",
"version" : "2.34.2",
"major" : "2"
}
},
{
"desc" : "GnomeMplayer",
"ua" : "GnomeMplayer/1.0.2",
"expect" :
{
"name" : "GnomeMplayer",
"version" : "1.0.2",
"major" : "1"
}
},
{
"desc" : "HTC Streaming Player",
"ua" : "HTC Streaming Player htc_asia_wwe / 1.0 / endeavoru / 4.1.1",
"expect" :
{
"name" : "HTC Streaming Player",
"version" : "1.0",
"major" : "1"
}
},
{
"desc" : "HTC One S",
"ua" : "HTC_One_S/3.16.111.10",
"expect" :
{
"name" : "HTC One S",
"version" : "3.16.111.10",
"major" : "3"
}
},
{
"desc" : "Java",
"ua" : "Java/1.4.1_04",
"expect" :
{
"name" : "Java",
"version" : "1.4.1_04",
"major" : "1"
}
},
{
"desc" : "LG Player",
"ua" : "LG Player 1.0; Android",
"expect" :
{
"name" : "LG Player",
"version" : "1.0",
"major" : "1"
}
},
{
"desc" : "NexPlayer",
"ua" : "LG-P700/V10k-DEC-12-2012 Player/NexPlayer 4.0 for Android",
"expect" :
{
"name" : "NexPlayer",
"version" : "4.0",
"major" : "4"
}
},
{
"desc" : "LG Player",
"ua" : "LGE400/V10b Player/LG Player 1.0",
"expect" :
{
"name" : "LG Player",
"version" : "1.0",
"major" : "1"
}
},
{
"desc" : "Lavf",
"ua" : "Lavf52.111.0",
"expect" :
{
"name" : "Lavf",
"version" : "52.111.0",
"major" : "52"
}
},
{
"desc" : "Lyssna",
"ua" : "Lyssna/46 CFNetwork/609.1.4 Darwin/13.0.0",
"expect" :
{
"name" : "Lyssna",
"version" : "46",
"major" : "46"
}
},
{
"desc" : "MPlayer",
"ua" : "MPlayer 1.1-4.2.1",
"expect" :
{
"name" : "MPlayer",
"version" : "1.1-4.2.1",
"major" : ""
}
},
{
"desc" : "MPlayer SVN",
"ua" : "MPlayer SVN-r33713-4.6.1",
"expect" :
{
"name" : "MPlayer",
"version" : "r33713-4.6.1",
"major" : "undefined"
}
},
{
"desc" : "MPlayer ubuntu",
"ua" : "MPlayer svn r34540 (Ubuntu), built with gcc-4.6",
"expect" :
{
"name" : "MPlayer",
"version" : "r34540",
"major" : "undefined"
}
},
{
"desc" : "MoC",
"ua" : "Music On Console/2.5.0-beta1",
"expect" :
{
"name" : "Music On Console",
"version" : "2.5.0-beta1",
"major" : "2"
}
},
{
"desc" : "MPD",
"ua" : "Music Player Daemon 0.17.4",
"expect" :
{
"name" : "Music Player Daemon",
"version" : "0.17.4",
"major" : "0"
}
},
{
"desc" : "NSPlayer",
"ua" : "NSPlayer/11.0.5358.4827 WMFSDK/11.0",
"expect" :
{
"name" : "NSPlayer",
"version" : "11.0.5358.4827",
"major" : "11"
}
},
{
"desc" : "Nero Home",
"ua" : "Nero Home/1.5.3.0 (compatible; Nero AG; Nero Home 1.5.3.0)",
"expect" :
{
"name" : "Nero Home",
"version" : "1.5.3.0",
"major" : "1"
}
},
{
"desc" : "NexPlayer",
"ua" : "NexPlayer 4.0 for Android( stagefright alternative )",
"expect" :
{
"name" : "NexPlayer",
"version" : "4.0",
"major" : "4"
}
},
{
"desc" : "Nokia3xx",
"ua" : "Nokia303/14.87 CLDC-1.1",
"expect" :
{
"name" : "Nokia303",
"version" : "14.87",
"major" : "14"
}
},
{
"desc" : "MPlayer SVN Sherpya",
"ua" : "MPlayer Sherpya-SVN-r33124-4.2.5",
"expect" :
{
"name" : "MPlayer",
"version" : "r33124-4.2.5",
"major" : "undefined"
}
},
{
"desc" : "Philips Songbird",
"ua" : "NotMoz/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.3) Gecko/20101207 Philips-Songbird/5.4.1980 Songbird/1.9.4 (20110302030555)",
"expect" :
{
"name" : "Songbird",
"version" : "1.9.4",
"major" : "1"
}
},
{
"desc" : "Ossproxy",
"ua" : "OSSProxy 1.3.336.320 (Build 336.320 Win32 en-us)(Aug 16 2013 17:38:43)",
"expect" :
{
"name" : "OSSProxy",
"version" : "1.3.336.320",
"major" : "1"
}
},
{
"desc" : "Winamp3",
"ua" : "Nullsoft Winamp3 version 3.0 (compatible)",
"expect" :
{
"name" : "Winamp",
"version" : "3.0",
"major" : "3"
}
},
{
"desc" : "PSP",
"ua" : "PSP-InternetRadioPlayer/1.00",
"expect" :
{
"name" : "PSP-InternetRadioPlayer",
"version" : "1.00",
"major" : "1"
}
},
{
"desc" : "urllib",
"ua" : "Python-urllib/2.7",
"expect" :
{
"name" : "Python-urllib",
"version" : "2.7",
"major" : "2"
}
},
{
"desc" : "QuickTime",
"ua" : "QuickTime/7.5.6 (qtver=7.5.6;cpu=IA32;os=Mac 10.5.8)",
"expect" :
{
"name" : "QuickTime",
"version" : "7.5.6",
"major" : "7"
}
},
{
"desc" : "RMA",
"ua" : "RMA/1.0 (compatible; RealMedia)",
"expect" :
{
"name" : "RMA",
"version" : "1.0",
"major" : "1"
}
},
{
"desc" : "RadioApp",
"ua" : "RadioApp/1.0 CFNetwork/609.1.4 Darwin/11.4.2",
"expect" :
{
"name" : "RadioApp",
"version" : "1.0",
"major" : "1"
}
},
{
"desc" : "RadioClientApplication",
"ua" : "RadioClientApplication/20 CFNetwork/609.1.4 Darwin/13.0.0",
"expect" :
{
"name" : "RadioClientApplication",
"version" : "20",
"major" : "undefined"
}
},
{
"desc" : "stagefright",
"ua" : "Samsung GT-I9070 stagefright/1.1 (Linux;Android 2.3.6)",
"expect" :
{
"name" : "stagefright",
"version" : "1.1",
"major" : "1"
}
},
{
"desc" : "Soundtap",
"ua" : "Soundtap/1.2.4 CFNetwork/672.0.2 Darwin/14.0.0",
"expect" :
{
"name" : "Soundtap",
"version" : "1.2.4",
"major" : "1"
}
},
{
"desc" : "Streamium",
"ua" : "Streamium/1.0",
"expect" :
{
"name" : "Streamium",
"version" : "1.0",
"major" : "1"
}
},
{
"desc" : "Totem",
"ua" : "Totem/3.0.1",
"expect" :
{
"name" : "Totem",
"version" : "3.0.1",
"major" : "3"
}
},
{
"desc" : "VLC",
"ua" : "VLC media player - version 0.8.6c Janus - (c) 1996-2007 the VideoLAN team",
"expect" :
{
"name" : "VLC",
"version" : "0.8.6c",
"major" : "0"
}
},
{
"desc" : "VLC",
"ua" : "VLC/2.0.0 LibVLC/2.0.0",
"expect" :
{
"name" : "VLC",
"version" : "2.0.0",
"major" : "2"
}
},
{
"desc" : "Videos",
"ua" : "Videos/3.8.2",
"expect" :
{
"name" : "Video",
"version" : "3.8.2",
"major" : "3"
}
},
{
"desc" : "Wget",
"ua" : "Wget/1.12 (darwin10.7.0)",
"expect" :
{
"name" : "Wget",
"version" : "1.12",
"major" : "1"
}
},
{
"desc" : "Winamp",
"ua" : "Winamp 2.81",
"expect" :
{
"name" : "Winamp",
"version" : "2.81",
"major" : "2"
}
},
{
"desc" : "Winamp",
"ua" : "WinampMPEG/2.00",
"expect" :
{
"name" : "Winamp",
"version" : "2.00",
"major" : "2"
}
},
{
"desc" : "Windows Media Player",
"ua" : "Windows-Media-Player/10.00.00.4019",
"expect" :
{
"name" : "Windows Media Player",
"version" : "10.00.00.4019",
"major" : "10"
}
},
{
"desc" : "XBMC",
"ua" : "XBMC/12.0 Git:20130127-fb595f2 (Windows NT 6.1;WOW64;Win64;x64; http://www.xbmc.org)",
"expect" :
{
"name" : "XBMC",
"version" : "12.0",
"major" : "12"
}
},
{
"desc" : "rad.io",
"ua" : "rad.io 1.18.1 rv:593 (iPhone 4S; iPhone OS 7.0.4; it_IT)",
"expect" :
{
"name" : "rad.io",
"version" : "1.18.1",
"major" : "1"
}
},
{
"desc" : "BE-Test",
"ua" : "APP-BE Test/1.0 (iPad; Apple; CPU iPhone OS 7_0_2 like Mac OS X)",
"expect" :
{
"name" : "BE Test",
"version" : "1.0",
"major" : "1"
}
}
]

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,32 +0,0 @@
{
"title": "UAParser.js",
"name": "ua-parser-js",
"version": "0.6.16",
"description": "Lightweight JavaScript-based user-agent string parser",
"keywords": [
"user-agent",
"parser",
"browser",
"engine",
"os",
"device",
"cpu"
],
"homepage": "https://faisalman.github.com/ua-parser-js",
"author": {
"name": "Faisal Salman",
"email": "fyzlman@gmail.com"
},
"dependencies": {
"jquery": ">=1.5"
},
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
],
"bugs": "https://github.com/faisalman/ua-parser-js/issues",
"docs": "https://github.com/faisalman/ua-parser-js",
"download": "https://raw.github.com/faisalman/ua-parser-js/master/src/ua-parser.min.js"
}