mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-16 23:21:52 +03:00
Compare commits
466 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d3c98a10c | ||
|
|
535f11bd24 | ||
|
|
642c0399e8 | ||
|
|
3edacddb24 | ||
|
|
acc0b91ff5 | ||
|
|
f726dcd1ae | ||
|
|
383ca587ef | ||
|
|
7c8aa435b2 | ||
|
|
09aa9105dc | ||
|
|
557cc2198d | ||
|
|
f95aced43b | ||
|
|
24950f97ae | ||
|
|
cb30756f48 | ||
|
|
0868e372e0 | ||
|
|
9d431cfddd | ||
|
|
c937400e8e | ||
|
|
8bea5c552a | ||
|
|
3843578de9 | ||
|
|
be9a066029 | ||
|
|
6f2ba7fcd5 | ||
|
|
d72de26ef9 | ||
|
|
80fae81eee | ||
|
|
91fa6dd5cc | ||
|
|
a6b0c165c4 | ||
|
|
999764cf36 | ||
|
|
0e70fc4044 | ||
|
|
3b703a6379 | ||
|
|
4f27489ccf | ||
|
|
2cfd792d24 | ||
|
|
b406b5df2c | ||
|
|
536b9e8d9d | ||
|
|
8d5685771d | ||
|
|
69a568ae49 | ||
|
|
59d947dcab | ||
|
|
62cb5a2e54 | ||
|
|
cd61aef07d | ||
|
|
afe62e915d | ||
|
|
ef4eeadcd8 | ||
|
|
3da59cef3d | ||
|
|
a0b40be04f | ||
|
|
73fb12b379 | ||
|
|
94d3550844 | ||
|
|
14e7dd3f86 | ||
|
|
dff9746527 | ||
|
|
effd766e3b | ||
|
|
4d94c6b3e3 | ||
|
|
daeb118543 | ||
|
|
c47f458586 | ||
|
|
8c2b84fc31 | ||
|
|
1667f5f2b2 | ||
|
|
e1905168a8 | ||
|
|
10475761cf | ||
|
|
db381cad92 | ||
|
|
bb16473fac | ||
|
|
fe5ca1de96 | ||
|
|
ebccc29d97 | ||
|
|
1a8cd671ab | ||
|
|
d1ba5f5914 | ||
|
|
e402a6a55c | ||
|
|
e612b44ecd | ||
|
|
fc1d3b0719 | ||
|
|
c626c01a5e | ||
|
|
d1ea2f0dc4 | ||
|
|
70a586d4b1 | ||
|
|
9da55e9791 | ||
|
|
6c44b3fcc5 | ||
|
|
b1f34c1620 | ||
|
|
1cfe34f517 | ||
|
|
6c87e069ec | ||
|
|
d658ef364b | ||
|
|
f85dc8cb9a | ||
|
|
cdac86782b | ||
|
|
46615e70db | ||
|
|
6aa3ff1374 | ||
|
|
dce862364b | ||
|
|
ec5a864abb | ||
|
|
d78a2e0361 | ||
|
|
f661da9d47 | ||
|
|
9999815ac8 | ||
|
|
809439e20e | ||
|
|
5b83893476 | ||
|
|
9d154cc41b | ||
|
|
7679003f87 | ||
|
|
cd1bfd87c5 | ||
|
|
45bf76a0fe | ||
|
|
f543c5ad72 | ||
|
|
89a72c27a7 | ||
|
|
314131d003 | ||
|
|
386ebc29f1 | ||
|
|
b0f14de2a4 | ||
|
|
fd8a583020 | ||
|
|
cc2da937c6 | ||
|
|
34e2e800c5 | ||
|
|
26c74ef356 | ||
|
|
e4b3029668 | ||
|
|
b7d4865afd | ||
|
|
d5ab75a14e | ||
|
|
c7475db860 | ||
|
|
83d37b4887 | ||
|
|
2d53ceb8bf | ||
|
|
d107155a57 | ||
|
|
43fb4d16a7 | ||
|
|
6d1f26df05 | ||
|
|
86471ad7e2 | ||
|
|
9dfa5fc675 | ||
|
|
4547dbc0b4 | ||
|
|
7b23335d29 | ||
|
|
da53c35f91 | ||
|
|
edd84eaa72 | ||
|
|
1a75bc845f | ||
|
|
e72371c34d | ||
|
|
e96f95802d | ||
|
|
aa190ad319 | ||
|
|
233d3bae22 | ||
|
|
3547f16d08 | ||
|
|
da113f9fad | ||
|
|
150ad0b176 | ||
|
|
ba5324d3cd | ||
|
|
631d0501bb | ||
|
|
20ceaf9000 | ||
|
|
a8972c7d70 | ||
|
|
8196cb1c43 | ||
|
|
624eaf3f8a | ||
|
|
4ca311224f | ||
|
|
5230745280 | ||
|
|
cc11bc6a2c | ||
|
|
bd6dee4a08 | ||
|
|
1fc9d5a4a4 | ||
|
|
7568f0a6f5 | ||
|
|
726a458c84 | ||
|
|
4daaa41211 | ||
|
|
74c973b0d8 | ||
|
|
43169ce1da | ||
|
|
b0059eff5b | ||
|
|
ec0d7c037a | ||
|
|
a8eac11d82 | ||
|
|
e15ac48f0f | ||
|
|
74cb3d417b | ||
|
|
b45bd07bab | ||
|
|
feafa4d027 | ||
|
|
fc08e23f54 | ||
|
|
590234ba13 | ||
|
|
31a0460b60 | ||
|
|
e1dd27cc3f | ||
|
|
e14dcd598c | ||
|
|
d260bcca37 | ||
|
|
9da7fd4f92 | ||
|
|
5cbd2fa795 | ||
|
|
7fca67cbc7 | ||
|
|
ac123a98de | ||
|
|
65b3804625 | ||
|
|
c558a64ec5 | ||
|
|
c191372e67 | ||
|
|
5050ef75f6 | ||
|
|
3768a26e5d | ||
|
|
12a96a992a | ||
|
|
3a78cf598d | ||
|
|
8457f61f60 | ||
|
|
ca14b133cb | ||
|
|
411e41afd8 | ||
|
|
44d4ed5350 | ||
|
|
e5a02c0e57 | ||
|
|
c752520041 | ||
|
|
ee391c8888 | ||
|
|
a88934fadf | ||
|
|
8cf2a87938 | ||
|
|
b1d6eda6e1 | ||
|
|
a9fc6163b8 | ||
|
|
7ef62a68de | ||
|
|
de3b3bd55e | ||
|
|
700220f2b9 | ||
|
|
90ae87ec17 | ||
|
|
f60fdbefa5 | ||
|
|
97e919024b | ||
|
|
a88b70bdd4 | ||
|
|
0b7d05bae0 | ||
|
|
7d4d9fd476 | ||
|
|
89635fcc6e | ||
|
|
b6d2bb5262 | ||
|
|
73192e64d4 | ||
|
|
557c46f413 | ||
|
|
9fb502ea6d | ||
|
|
37cac21d0c | ||
|
|
95f37b4ce5 | ||
|
|
cc479f81ae | ||
|
|
d1a7f365ad | ||
|
|
a4da1e2b65 | ||
|
|
795139e1b8 | ||
|
|
97dc89ae03 | ||
|
|
cd3ba72b2f | ||
|
|
995e872ff8 | ||
|
|
3bad800860 | ||
|
|
bc4fd7417c | ||
|
|
6f27f8b862 | ||
|
|
df5229cb62 | ||
|
|
732cf5834e | ||
|
|
ddcc29f63f | ||
|
|
ce95d9ac17 | ||
|
|
56978dec0a | ||
|
|
60c4c2b693 | ||
|
|
213d2296df | ||
|
|
ed1ccb3902 | ||
|
|
61e5d24bb5 | ||
|
|
7c5991a725 | ||
|
|
3a5a701375 | ||
|
|
f6ef14d0cd | ||
|
|
7aca357879 | ||
|
|
7f8f357995 | ||
|
|
0fd919bd51 | ||
|
|
a400d2163c | ||
|
|
073c672af5 | ||
|
|
93e17524c0 | ||
|
|
2c7e61f9a2 | ||
|
|
87c6e5c1bd | ||
|
|
b88c52131f | ||
|
|
6c2a767e32 | ||
|
|
7dbf0c6867 | ||
|
|
0304152f72 | ||
|
|
4cc29dd88c | ||
|
|
95fcd3f672 | ||
|
|
d7608d0459 | ||
|
|
f8820389a9 | ||
|
|
46b9f0f2aa | ||
|
|
41ccecadea | ||
|
|
964431ef89 | ||
|
|
bf79eabecc | ||
|
|
01eab85f7d | ||
|
|
384bafe31c | ||
|
|
eb83122c5e | ||
|
|
64bd8a4e60 | ||
|
|
fc4c0df095 | ||
|
|
a142c0ee94 | ||
|
|
5c30aeed59 | ||
|
|
00064be6d6 | ||
|
|
76be1cb328 | ||
|
|
d601ab195f | ||
|
|
ac3b0624b8 | ||
|
|
b49865266c | ||
|
|
565d67bbb6 | ||
|
|
58c71a019e | ||
|
|
8c2607aac9 | ||
|
|
55ffb10a5f | ||
|
|
1493587742 | ||
|
|
f5e0aa83eb | ||
|
|
8fdc32f5b8 | ||
|
|
0059eef770 | ||
|
|
93affc671c | ||
|
|
a3f5efa680 | ||
|
|
4c00ccc6c2 | ||
|
|
34f934fa55 | ||
|
|
218e3a4a3b | ||
|
|
5eda2491b1 | ||
|
|
7acaf9ced8 | ||
|
|
bafac18512 | ||
|
|
ee553df245 | ||
|
|
bc4e75573a | ||
|
|
378dee1aaa | ||
|
|
d413cb0745 | ||
|
|
7fb860f030 | ||
|
|
2e57a9778f | ||
|
|
fb92a46479 | ||
|
|
4790f944bf | ||
|
|
3ed9d3f4ff | ||
|
|
0c6ae1a1e3 | ||
|
|
84bfaaf225 | ||
|
|
9ceb402834 | ||
|
|
a795cf83c4 | ||
|
|
8b54a7256e | ||
|
|
dfb8e758d1 | ||
|
|
083cb66d46 | ||
|
|
50bd78afb1 | ||
|
|
ac7f87f199 | ||
|
|
b367a3f741 | ||
|
|
4bbd7bd27c | ||
|
|
610781dac3 | ||
|
|
1b86f8fb94 | ||
|
|
0413755986 | ||
|
|
618c92aec9 | ||
|
|
7964f909a3 | ||
|
|
934e077aea | ||
|
|
503bb6eb06 | ||
|
|
435335e12f | ||
|
|
a6e1ed6392 | ||
|
|
9dfeee5211 | ||
|
|
ce2a8a3939 | ||
|
|
46dfe2aeb8 | ||
|
|
9c06febfce | ||
|
|
a75de42f8e | ||
|
|
6095258673 | ||
|
|
40aa1a693b | ||
|
|
25e143ee7c | ||
|
|
7bd9ffea24 | ||
|
|
c566f45cbd | ||
|
|
3b89dff771 | ||
|
|
5ba5e7abc9 | ||
|
|
b8978f5933 | ||
|
|
eeb1b9ef81 | ||
|
|
aeae29be66 | ||
|
|
3ce12c0cf9 | ||
|
|
4d95ac10ef | ||
|
|
61b4a089c5 | ||
|
|
74ec93ffb6 | ||
|
|
2c28b3e97e | ||
|
|
459f3d34f5 | ||
|
|
6f621f1ae2 | ||
|
|
7ae3098778 | ||
|
|
806c2b8030 | ||
|
|
cb1a64b509 | ||
|
|
b49cfae4e2 | ||
|
|
91b046462c | ||
|
|
69509af6dd | ||
|
|
225f703b67 | ||
|
|
7f217753f5 | ||
|
|
10f9fb35ca | ||
|
|
5ae468a3d3 | ||
|
|
fd46c4d2be | ||
|
|
297c6538bc | ||
|
|
f9f9fa79e1 | ||
|
|
07fe58b793 | ||
|
|
3a4626b5e8 | ||
|
|
3fd01f07ea | ||
|
|
d103dd5450 | ||
|
|
6cc6742f5e | ||
|
|
cf977c50ed | ||
|
|
4c15b10730 | ||
|
|
a3c7619d3a | ||
|
|
82aba654f9 | ||
|
|
2f1b14906f | ||
|
|
a3a09d33bc | ||
|
|
946ba02c54 | ||
|
|
d2d570fcd5 | ||
|
|
18e08428f4 | ||
|
|
552915907e | ||
|
|
6984de7927 | ||
|
|
7a68f35574 | ||
|
|
2bc75f10bc | ||
|
|
2610f37a8b | ||
|
|
a25bb8b1a6 | ||
|
|
ee2db31f8c | ||
|
|
89775a8ae7 | ||
|
|
7d826ed62e | ||
|
|
a6316f02b0 | ||
|
|
72a11e24b2 | ||
|
|
f7ca724f3b | ||
|
|
8d826fcc24 | ||
|
|
951106c425 | ||
|
|
83ca52bb28 | ||
|
|
6fb4941458 | ||
|
|
48ab3b372c | ||
|
|
38c409e8d9 | ||
|
|
4e2cbdfd16 | ||
|
|
fbe8a0e3a6 | ||
|
|
8e9c400ec5 | ||
|
|
b89fa098aa | ||
|
|
f3882f1882 | ||
|
|
a25426840c | ||
|
|
985a7b18e0 | ||
|
|
8e09cd49e3 | ||
|
|
4768992762 | ||
|
|
f89e08f2c0 | ||
|
|
fe568ffe96 | ||
|
|
252db2534e | ||
|
|
6555bf6e81 | ||
|
|
740fc93b4b | ||
|
|
eed646f9ce | ||
|
|
764de40fe0 | ||
|
|
49609c0990 | ||
|
|
ef69224d7c | ||
|
|
caa2f47c06 | ||
|
|
5177c460a5 | ||
|
|
3e2d5c1817 | ||
|
|
29a0372611 | ||
|
|
2aa2f77881 | ||
|
|
1e228b2fbe | ||
|
|
5379ec8513 | ||
|
|
01ae611dfa | ||
|
|
2de1f2a75d | ||
|
|
975cbdc89e | ||
|
|
507714c3c7 | ||
|
|
2b4a20d162 | ||
|
|
34848e8ec2 | ||
|
|
97b52b2cfd | ||
|
|
9f0419607b | ||
|
|
b13c891d7f | ||
|
|
7f9919f896 | ||
|
|
9fe7561d78 | ||
|
|
b99840d074 | ||
|
|
61b0f1c054 | ||
|
|
58880fda7f | ||
|
|
73735e1ca8 | ||
|
|
0f0ea13fab | ||
|
|
1fb82fb6ff | ||
|
|
88f2f4e24c | ||
|
|
1a4dab5829 | ||
|
|
2467a458e3 | ||
|
|
aadabcce29 | ||
|
|
d0b7c5892f | ||
|
|
d3f959ee28 | ||
|
|
d1a33d7d85 | ||
|
|
3dae55a3c8 | ||
|
|
87b88246a2 | ||
|
|
a56c990ec3 | ||
|
|
458f3c3cd2 | ||
|
|
f28f87c412 | ||
|
|
10775bd17c | ||
|
|
c03a84a601 | ||
|
|
eade7a9355 | ||
|
|
4e0aa0b88b | ||
|
|
4e7c662b0b | ||
|
|
93993dc311 | ||
|
|
55e75dd1b3 | ||
|
|
c71373b666 | ||
|
|
bf4c2e170e | ||
|
|
51b8089958 | ||
|
|
550420d725 | ||
|
|
fbcfe248b8 | ||
|
|
2a5cd4d119 | ||
|
|
c3f7294a44 | ||
|
|
b254f93ec1 | ||
|
|
1020d10a30 | ||
|
|
5ba9fd50ed | ||
|
|
bb69ef2bd4 | ||
|
|
3a457f9bd9 | ||
|
|
d929c3e508 | ||
|
|
0d42b3a752 | ||
|
|
1ec2119288 | ||
|
|
4344c43d04 | ||
|
|
909d6fc26d | ||
|
|
8e46a85549 | ||
|
|
1f92d6148c | ||
|
|
5d57850074 | ||
|
|
8e81811dea | ||
|
|
99a80e88fb | ||
|
|
cbba2f5728 | ||
|
|
fd39be3336 | ||
|
|
a1293f804e | ||
|
|
cf5c1f9e01 | ||
|
|
5d3835ad00 | ||
|
|
09bf4ecf7f | ||
|
|
43b0ee79d6 | ||
|
|
9518833e83 | ||
|
|
1e58e884ef | ||
|
|
e230cc1920 | ||
|
|
bbd3f14cfb | ||
|
|
a66d9b238a | ||
|
|
ae5bfb3893 | ||
|
|
2e5dff95c8 | ||
|
|
e944fededb | ||
|
|
23160c9fb3 | ||
|
|
01ba36c94d | ||
|
|
99c15dee95 | ||
|
|
e8bec7e611 | ||
|
|
f670224d8e | ||
|
|
116b5c695d | ||
|
|
0aafba67fa | ||
|
|
ab6a56d931 | ||
|
|
3bff4cf037 | ||
|
|
792dc0246a | ||
|
|
3964971c38 | ||
|
|
3382b75cad | ||
|
|
a19c6be712 | ||
|
|
20ea67ed1d | ||
|
|
172d63a28f | ||
|
|
8e169098b5 | ||
|
|
aa1bf53337 | ||
|
|
22e17fb004 |
12
.github/FUNDING.yml
vendored
Normal file
12
.github/FUNDING.yml
vendored
Normal 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/']
|
||||||
17
.github/workflows/run-test.yml
vendored
Normal file
17
.github/workflows/run-test.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: ua-parser-js-run-test
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
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
|
||||||
8
.gitignore
vendored
8
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
### vim ###
|
### vim ###
|
||||||
.*.s[a-w][a-z]
|
.*.s[a-w][a-z]
|
||||||
*.un~
|
*.un~
|
||||||
@@ -8,17 +9,20 @@ Session.vim
|
|||||||
*~
|
*~
|
||||||
.versions
|
.versions
|
||||||
|
|
||||||
|
### editors ###
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
*.sublime-*
|
||||||
|
|
||||||
### OSX ###
|
### OSX ###
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.AppleDouble
|
.AppleDouble
|
||||||
.LSOverride
|
.LSOverride
|
||||||
Icon
|
Icon
|
||||||
|
|
||||||
|
|
||||||
# Thumbnails
|
# Thumbnails
|
||||||
._*
|
._*
|
||||||
|
|
||||||
# Files that might appear on external disk
|
# Files that might appear on external disk
|
||||||
.Spotlight-V100
|
.Spotlight-V100
|
||||||
.Trashes
|
.Trashes
|
||||||
.idea
|
|
||||||
|
|||||||
15
.travis.yml
15
.travis.yml
@@ -1,5 +1,18 @@
|
|||||||
|
arch:
|
||||||
|
- amd64
|
||||||
|
- ppc64le
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "0.10"
|
- stable
|
||||||
|
- lts/*
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
script: npm run test-ci
|
||||||
30
bower.json
30
bower.json
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "ua-parser-js",
|
"name": "ua-parser-js",
|
||||||
"version": "0.7.9",
|
"version": "0.7.28",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Faisal Salman <fyzlman@gmail.com>"
|
"Faisal Salman <f@faisalman.com>"
|
||||||
],
|
],
|
||||||
"private": false,
|
"private": false,
|
||||||
"main": "src/ua-parser.js",
|
"main": "src/ua-parser.js",
|
||||||
@@ -13,31 +13,5 @@
|
|||||||
"test",
|
"test",
|
||||||
"tests"
|
"tests"
|
||||||
],
|
],
|
||||||
"contributors": [
|
|
||||||
"Faisal Salman <fyzlman@gmail.com>",
|
|
||||||
"Benjamin Bertrand <bertrand.design@gmail.com>",
|
|
||||||
"Carl C Von Lewin <carlchristianlewin@gmail.com>",
|
|
||||||
"Christopher De Cairos <chris.decairos@gmail.com>",
|
|
||||||
"Davit Barbakadze <jayarjo@gmail.com>",
|
|
||||||
"Dmitry Tyschenko <dtyschenko@gmail.com>",
|
|
||||||
"Douglas Li <doug@knotch.it>",
|
|
||||||
"Dumitru Uzun <duzun@mail.ru>",
|
|
||||||
"Erik Hesselink <hesselink@gmail.com>",
|
|
||||||
"Fabian Becker <halfdan@xnorfz.de>",
|
|
||||||
"Hendrik Helwich <h.helwich@iplabs.de>",
|
|
||||||
"Jackpoll <jackpoll123456@gmail.com>",
|
|
||||||
"Jake Mc <startswithaj@users.noreply.github.com>",
|
|
||||||
"John Tantalo <john.tantalo@gmail.com>",
|
|
||||||
"John Yanarella <jmy@codecatalyst.com>",
|
|
||||||
"Jon Buckley <jon@jbuckley.ca>",
|
|
||||||
"Kendall Buchanan <kendall@kendagriff.com>",
|
|
||||||
"Lee Treveil <leetreveil@gmail.com>",
|
|
||||||
"Leonardo <leofiore@libero.it>",
|
|
||||||
"Max Maurer <maxemanuel.maurer@gmail.com>",
|
|
||||||
"Michael Hess <mhess@connectify.me>",
|
|
||||||
"OtakuSiD <otakusid@gmail.com>",
|
|
||||||
"Ross Noble <rosshnoble@gmail.com>",
|
|
||||||
"Sandro Sonntag <sandro.sonntag@adorsys.de>"
|
|
||||||
],
|
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
}
|
}
|
||||||
|
|||||||
3
changelog.md
Normal file
3
changelog.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# UAParser.js Changelog
|
||||||
|
|
||||||
|
## Version 0.8.0
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "ua-parser-js",
|
|
||||||
"version": "0.7.9",
|
|
||||||
"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
1
dist/ua-parser.html
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<script src="./ua-parser.min.js"></script>
|
||||||
10
dist/ua-parser.min.js
vendored
10
dist/ua-parser.min.js
vendored
File diff suppressed because one or more lines are too long
10
dist/ua-parser.pack.js
vendored
10
dist/ua-parser.pack.js
vendored
File diff suppressed because one or more lines are too long
21
license.md
Normal file
21
license.md
Normal 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.
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
Package.describe({
|
Package.describe({
|
||||||
name: 'faisalman:ua-parser-js',
|
name: 'faisalman:ua-parser-js',
|
||||||
version: '0.7.9',
|
version: '0.7.28',
|
||||||
summary: 'Lightweight JavaScript-based user-agent string parser',
|
summary: 'Lightweight JavaScript-based user-agent string parser',
|
||||||
git: 'https://github.com/faisalman/ua-parser-js.git',
|
git: 'https://github.com/faisalman/ua-parser-js.git',
|
||||||
documentation: 'readme.md'
|
documentation: 'readme.md'
|
||||||
});
|
});
|
||||||
|
|
||||||
Package.on_use(function (api) {
|
Package.onUse(function (api) {
|
||||||
api.export("UAParser");
|
|
||||||
api.addFiles("src/ua-parser.js");
|
api.addFiles("src/ua-parser.js");
|
||||||
|
api.export("UAParser");
|
||||||
});
|
});
|
||||||
|
|||||||
157
package.json
157
package.json
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"title": "UAParser.js",
|
"title": "UAParser.js",
|
||||||
"name": "ua-parser-js",
|
"name": "ua-parser-js",
|
||||||
"version": "0.7.9",
|
"version": "0.7.28",
|
||||||
"author": "Faisal Salman <fyzlman@gmail.com> (http://faisalman.com)",
|
"author": "Faisal Salman <f@faisalman.com> (http://faisalman.com)",
|
||||||
"description": "Lightweight JavaScript-based user-agent string parser",
|
"description": "Lightweight JavaScript-based user-agent string parser",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"user-agent",
|
"user-agent",
|
||||||
@@ -11,46 +11,145 @@
|
|||||||
"engine",
|
"engine",
|
||||||
"os",
|
"os",
|
||||||
"device",
|
"device",
|
||||||
"cpu"
|
"cpu",
|
||||||
|
"jquery-plugin",
|
||||||
|
"ecosystem:jquery"
|
||||||
],
|
],
|
||||||
"homepage": "http://github.com/faisalman/ua-parser-js",
|
"homepage": "https://github.com/faisalman/ua-parser-js",
|
||||||
"contributors": [
|
"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 Bertrand <bertrand.design@gmail.com>",
|
||||||
|
"Benjamin Urban <benjamin.urban@sueddeutsche.de>",
|
||||||
|
"boneyao <admin@boneyao.com>",
|
||||||
"Carl C Von Lewin <carlchristianlewin@gmail.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>",
|
"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>",
|
"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>",
|
"Dmitry Tyschenko <dtyschenko@gmail.com>",
|
||||||
"Douglas Li <doug@knotch.it>",
|
"Douglas Li <doug@knotch.it>",
|
||||||
"Dumitru Uzun <contact@duzun.me>",
|
"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>",
|
"Erik Hesselink <hesselink@gmail.com>",
|
||||||
"Fabian Becker <halfdan@xnorfz.de>",
|
"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>",
|
"Hendrik Helwich <h.helwich@iplabs.de>",
|
||||||
"Jackpoll <jackpoll123456@gmail.com>",
|
"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>",
|
"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 Tantalo <john.tantalo@gmail.com>",
|
||||||
"John Yanarella <jmy@codecatalyst.com>",
|
"John Yanarella <jmy@codecatalyst.com>",
|
||||||
"Jon Buckley <jon@jbuckley.ca>",
|
"Jon Buckley <jon@jbuckley.ca>",
|
||||||
|
"Josh Goldberg <joshuakgoldberg@outlook.com>",
|
||||||
|
"Junki-Ishida <junki_ishida@dwango.co.jp>",
|
||||||
"Kendall Buchanan <kendall@kendagriff.com>",
|
"Kendall Buchanan <kendall@kendagriff.com>",
|
||||||
"Lee Treveil <leetreveil@gmail.com>",
|
"Lee Treveil <leetreveil@gmail.com>",
|
||||||
"Leonardo <leofiore@libero.it>",
|
"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 Maurer <maxemanuel.maurer@gmail.com>",
|
||||||
|
"Max Nordlund <max.nordlund@gmail.com>",
|
||||||
"Michael Hess <mhess@connectify.me>",
|
"Michael Hess <mhess@connectify.me>",
|
||||||
"OtakuSiD <otakusid@gmail.com>",
|
"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>",
|
"Ross Noble <rosshnoble@gmail.com>",
|
||||||
"Sandro Sonntag <sandro.sonntag@adorsys.de>"
|
"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",
|
"main": "src/ua-parser.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "uglifyjs src/ua-parser.js > dist/ua-parser.min.js --comments '/UAParser\\.js/' && uglifyjs src/ua-parser.js > dist/ua-parser.pack.js --comments '/UAParser\\.js/' --compress --mangle",
|
"build": "uglifyjs src/ua-parser.js -o dist/ua-parser.min.js --comments && uglifyjs src/ua-parser.js -o dist/ua-parser.pack.js --comments --compress --mangle",
|
||||||
"test": "jshint src/ua-parser.js && mocha -R nyan test/test.js",
|
"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",
|
"verup": "node ./node_modules/verup",
|
||||||
"version": "node ./node_modules/verup 0"
|
"version": "node ./node_modules/verup 0"
|
||||||
},
|
},
|
||||||
"verup": {
|
"verup": {
|
||||||
"files": [
|
"files": [
|
||||||
"ua-parser-js.jquery.json",
|
|
||||||
"component.json",
|
|
||||||
"bower.json",
|
"bower.json",
|
||||||
"package.js",
|
"package.js",
|
||||||
"src/ua-parser.js"
|
"src/ua-parser.js"
|
||||||
@@ -61,25 +160,18 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jshint": "~1.1.0",
|
"jshint": "~2.12.0",
|
||||||
"mocha": "~1.8.0",
|
"mocha": "~8.2.0",
|
||||||
"uglify-js": "~1.3.4",
|
"requirejs": "^2.3.2",
|
||||||
|
"safe-regex": "^2.1.1",
|
||||||
|
"uglify-js": "~3.12.0",
|
||||||
"verup": "^1.3.x"
|
"verup": "^1.3.x"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/faisalman/ua-parser-js.git"
|
"url": "https://github.com/faisalman/ua-parser-js.git"
|
||||||
},
|
},
|
||||||
"licenses": [
|
"license": "MIT",
|
||||||
{
|
|
||||||
"type": "GPLv2",
|
|
||||||
"url": "http://www.gnu.org/licenses/gpl-2.0.html"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "MIT",
|
|
||||||
"url": "http://www.opensource.org/licenses/mit-license.php"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "*"
|
"node": "*"
|
||||||
},
|
},
|
||||||
@@ -87,5 +179,18 @@
|
|||||||
"dist": "dist",
|
"dist": "dist",
|
||||||
"src": "src",
|
"src": "src",
|
||||||
"test": "test"
|
"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"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
249
readme.md
249
readme.md
@@ -1,51 +1,71 @@
|
|||||||
|
<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
|
# UAParser.js
|
||||||
|
|
||||||
Lightweight JavaScript-based User-Agent string parser. Supports browser & node.js environment. Also available as jQuery/Zepto plugin, Component/Bower/Meteor package, & RequireJS/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).
|
||||||
|
|
||||||
[](https://travis-ci.org/faisalman/ua-parser-js)
|
* Author : Faisal Salman <<f@faisalman.com>>
|
||||||
[](http://flattr.com/thing/3867907/faisalmanua-parser-js-on-GitHub)
|
|
||||||
|
|
||||||
* Author : Faisal Salman <<fyzlman@gmail.com>>
|
|
||||||
* Demo : http://faisalman.github.io/ua-parser-js
|
* Demo : http://faisalman.github.io/ua-parser-js
|
||||||
* Source : https://github.com/faisalman/ua-parser-js
|
* Source : https://github.com/faisalman/ua-parser-js
|
||||||
|
|
||||||
## Features
|
# Documentation
|
||||||
|
|
||||||
Extract detailed type of web browser, layout engine, operating system, cpu architecture, and device type/model purely from user-agent string with relatively lightweight footprint (~11KB minified / ~4KB gzipped). Written in vanilla js, which means it doesn't depends on any other library.
|
## Constructor
|
||||||
|
|
||||||

|
* `new UAParser([uastring][,extensions])`
|
||||||
|
* returns new instance
|
||||||
|
|
||||||
|
* `UAParser([uastring][,extensions])`
|
||||||
|
* returns result object `{ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, os: {} }`
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
* `getBrowser()`
|
* `getBrowser()`
|
||||||
* returns `{ name: '', version: '' }`
|
* returns `{ name: '', version: '' }`
|
||||||
|
|
||||||
```
|
```sh
|
||||||
# Possible 'browser.name':
|
# Possible 'browser.name':
|
||||||
Amaya, Android Browser, Arora, Avant, Baidu, Blazer, Bolt, Camino, Chimera, Chrome,
|
2345Explorer, 360 Browser, Amaya, Android Browser, Arora, Avant, Avast, AVG,
|
||||||
Chromium, Comodo Dragon, Conkeror, Dillo, Dolphin, Doris, Edge, Epiphany, Fennec,
|
BIDUBrowser, Baidu, Basilisk, Blazer, Bolt, Brave, Bowser, Camino, Chimera,
|
||||||
Firebird, Firefox, Flock, GoBrowser, iCab, ICE Browser, IceApe, IceCat, IceDragon,
|
Chrome Headless, Chrome WebView, Chrome, Chromium, Comodo Dragon, Dillo,
|
||||||
Iceweasel, IE [Mobile], Iron, Jasmine, K-Meleon, Konqueror, Kindle, Links,
|
Dolphin, Doris, Edge, Electron, Epiphany, Facebook, Falkon, Fennec, Firebird,
|
||||||
Lunascape, Lynx, Maemo, Maxthon, Midori, Minimo, MIUI Browser, [Mobile] Safari,
|
Firefox [Reality], Flock, Flow, GSA, GoBrowser, ICE Browser, IE, IEMobile, IceApe,
|
||||||
Mosaic, Mozilla, Netfront, Netscape, NetSurf, Nokia, OmniWeb, Opera [Mini/Mobi/Tablet],
|
IceCat, IceDragon, Iceweasel, Instagram, Iridium, Iron, Jasmine, K-Meleon,
|
||||||
Phoenix, Polaris, QQBrowser, RockMelt, Silk, Skyfire, SeaMonkey, SlimBrowser, Swiftfox,
|
Kindle, Konqueror, LBBROWSER, Line, Links, Lunascape, Lynx, MIUI Browser,
|
||||||
Tizen, UCBrowser, Vivaldi, w3m, Yandex
|
Maemo Browser, Maemo, Maxthon, MetaSr Midori, Minimo, Mobile Safari, Mosaic,
|
||||||
|
Mozilla, NetFront, NetSurf, Netfront, Netscape, NokiaBrowser, 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, Vivaldi, Waterfox, WeChat,
|
||||||
|
Weibo, Yandex, baidu, iCab, w3m, Whale Browser...
|
||||||
|
|
||||||
# 'browser.version' determined dynamically
|
# 'browser.version' determined dynamically
|
||||||
```
|
```
|
||||||
|
|
||||||
* `getDevice()`
|
* `getDevice()`
|
||||||
* returns `{ model: '', type: '', vendor: '' }`
|
* returns `{ model: '', type: '', vendor: '' }`
|
||||||
|
|
||||||
```
|
```sh
|
||||||
# Possible 'device.type':
|
# Possible 'device.type':
|
||||||
console, mobile, tablet, smarttv, wearable, embedded
|
console, mobile, tablet, smarttv, wearable, embedded
|
||||||
|
|
||||||
# Possible 'device.vendor':
|
# Possible 'device.vendor':
|
||||||
Acer, Alcatel, Amazon, Apple, Archos, Asus, BenQ, BlackBerry, Dell, GeeksPhone,
|
Acer, Alcatel, Amazon, Apple, Archos, ASUS, AT&T, BenQ, BlackBerry, Dell,
|
||||||
Google, HP, HTC, Huawei, Jolla, Lenovo, LG, Meizu, Microsoft, Motorola, Nexian,
|
Essential, Fairphone, GeeksPhone, Google, HP, HTC, Huawei, Jolla, Lenovo, LG,
|
||||||
Nintendo, Nokia, Nvidia, Ouya, Palm, Panasonic, Polytron, RIM, Samsung, Sharp,
|
Meizu, Microsoft, Motorola, Nexian, Nintendo, Nokia, Nvidia, OnePlus, OPPO, Ouya,
|
||||||
Siemens, Sony-Ericsson, Sprint, Xbox, ZTE
|
Palm, Panasonic, Pebble, Polytron, Realme, RIM, Samsung, Sharp, Siemens,
|
||||||
|
Sony[Ericsson], Sprint, Tesla, Vivo, Vodafone, Xbox, Xiaomi, Zebra, ZTE, ...
|
||||||
|
|
||||||
# 'device.model' determined dynamically
|
# 'device.model' determined dynamically
|
||||||
```
|
```
|
||||||
@@ -53,10 +73,10 @@ Siemens, Sony-Ericsson, Sprint, Xbox, ZTE
|
|||||||
* `getEngine()`
|
* `getEngine()`
|
||||||
* returns `{ name: '', version: '' }`
|
* returns `{ name: '', version: '' }`
|
||||||
|
|
||||||
```
|
```sh
|
||||||
# Possible 'engine.name'
|
# Possible 'engine.name'
|
||||||
Amaya, EdgeHTML, Gecko, iCab, KHTML, Links, Lynx, NetFront, NetSurf, Presto,
|
Amaya, Blink, EdgeHTML, Flow, Gecko, Goanna, iCab, KHTML, Links, Lynx, NetFront,
|
||||||
Tasman, Trident, w3m, WebKit
|
NetSurf, Presto, Tasman, Trident, w3m, WebKit
|
||||||
|
|
||||||
# 'engine.version' determined dynamically
|
# 'engine.version' determined dynamically
|
||||||
```
|
```
|
||||||
@@ -64,14 +84,15 @@ Tasman, Trident, w3m, WebKit
|
|||||||
* `getOS()`
|
* `getOS()`
|
||||||
* returns `{ name: '', version: '' }`
|
* returns `{ name: '', version: '' }`
|
||||||
|
|
||||||
```
|
```sh
|
||||||
# Possible 'os.name'
|
# Possible 'os.name'
|
||||||
AIX, Amiga OS, Android, Arch, Bada, BeOS, BlackBerry, CentOS, Chromium OS, Contiki,
|
AIX, Amiga OS, Android, Arch, Bada, BeOS, BlackBerry, CentOS, Chromium OS,
|
||||||
Fedora, Firefox OS, FreeBSD, Debian, DragonFly, Gentoo, GNU, Haiku, Hurd, iOS,
|
Contiki, Fedora, Firefox OS, FreeBSD, Debian, DragonFly, Fuchsia, Gentoo, GNU,
|
||||||
Joli, Linpus, Linux, Mac OS, Mageia, Mandriva, MeeGo, Minix, Mint, Morph OS, NetBSD,
|
Haiku, Hurd, iOS, Joli, KaiOS, Linpus, Linux, Mac OS, Mageia, Mandriva, MeeGo,
|
||||||
Nintendo, OpenBSD, OpenVMS, OS/2, Palm, PCLinuxOS, Plan9, Playstation, QNX, RedHat,
|
Minix, Mint, Morph OS, NetBSD, Nintendo, OpenBSD, OpenVMS, OS/2, Palm, PC-BSD,
|
||||||
RIM Tablet OS, RISC OS, Sailfish, Series40, Slackware, Solaris, SUSE, Symbian, Tizen,
|
PCLinuxOS, Plan9, PlayStation, QNX, Raspbian, RedHat, RIM Tablet OS, RISC OS,
|
||||||
Ubuntu, UNIX, VectorLinux, WebOS, Windows [Phone/Mobile], Zenwalk
|
Sailfish, Series40, Slackware, Solaris, SUSE, Symbian, Tizen, Ubuntu, Unix,
|
||||||
|
VectorLinux, WebOS, Windows [Phone/Mobile], Zenwalk, ...
|
||||||
|
|
||||||
# 'os.version' determined dynamically
|
# 'os.version' determined dynamically
|
||||||
```
|
```
|
||||||
@@ -79,10 +100,9 @@ Ubuntu, UNIX, VectorLinux, WebOS, Windows [Phone/Mobile], Zenwalk
|
|||||||
* `getCPU()`
|
* `getCPU()`
|
||||||
* returns `{ architecture: '' }`
|
* returns `{ architecture: '' }`
|
||||||
|
|
||||||
```
|
```sh
|
||||||
# Possible 'cpu.architecture'
|
# Possible 'cpu.architecture'
|
||||||
68k, amd64, arm, arm64, avr, ia32, ia64, irix, irix64, mips, mips64, pa-risc,
|
68k, amd64, arm[64/hf], avr, ia[32/64], irix[64], mips[64], pa-risc, ppc, sparc[64]
|
||||||
ppc, sparc, sparc64
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* `getResult()`
|
* `getResult()`
|
||||||
@@ -92,28 +112,30 @@ ppc, sparc, sparc64
|
|||||||
* returns UA string of current instance
|
* returns UA string of current instance
|
||||||
|
|
||||||
* `setUA(uastring)`
|
* `setUA(uastring)`
|
||||||
* set & parse UA string
|
* set UA string to be parsed
|
||||||
|
* returns current instance
|
||||||
|
|
||||||
## Example
|
# Usage
|
||||||
|
|
||||||
|
## Using HTML
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script type="text/javascript" src="ua-parser.min.js"></script>
|
<script src="ua-parser.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script>
|
||||||
|
|
||||||
var parser = new UAParser();
|
var parser = new UAParser();
|
||||||
|
|
||||||
// by default it takes ua string from current browser's window.navigator.userAgent
|
|
||||||
console.log(parser.getResult());
|
console.log(parser.getResult());
|
||||||
/*
|
/*
|
||||||
/// this will print an object structured like this:
|
/// This will print an object structured like this:
|
||||||
{
|
{
|
||||||
ua: "",
|
ua: "",
|
||||||
browser: {
|
browser: {
|
||||||
name: "",
|
name: "",
|
||||||
version: ""
|
version: "",
|
||||||
|
major: "" //@deprecated
|
||||||
},
|
},
|
||||||
engine: {
|
engine: {
|
||||||
name: "",
|
name: "",
|
||||||
@@ -133,14 +155,14 @@ ppc, sparc, sparc64
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
// Default result depends on current window.navigator.userAgent value
|
||||||
|
|
||||||
// let's test a custom user-agent string as an example
|
// Now let's try 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";
|
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(uastring);
|
parser.setUA(uastring1);
|
||||||
|
|
||||||
var result = parser.getResult();
|
var result = parser.getResult();
|
||||||
// this will also produce the same result (without instantiation):
|
// You can also use UAParser constructor directly without having to create an instance:
|
||||||
// var result = UAParser(uastring);
|
// var result = UAParser(uastring1);
|
||||||
|
|
||||||
console.log(result.browser); // {name: "Chromium", 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.device); // {model: undefined, type: undefined, vendor: undefined}
|
||||||
@@ -149,7 +171,7 @@ ppc, sparc, sparc64
|
|||||||
console.log(result.engine.name); // "WebKit"
|
console.log(result.engine.name); // "WebKit"
|
||||||
console.log(result.cpu.architecture); // "amd64"
|
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)";
|
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.setUA(uastring2).getBrowser().name); // "Konqueror"
|
||||||
console.log(parser.getOS()); // {name: "OpenBSD", version: undefined}
|
console.log(parser.getOS()); // {name: "OpenBSD", version: undefined}
|
||||||
@@ -167,7 +189,7 @@ ppc, sparc, sparc64
|
|||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using node.js
|
## Using node.js
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ npm install ua-parser-js
|
$ npm install ua-parser-js
|
||||||
@@ -188,47 +210,28 @@ http.createServer(function (req, res) {
|
|||||||
console.log('Server running at http://127.0.0.1:1337/');
|
console.log('Server running at http://127.0.0.1:1337/');
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using requirejs
|
## Using TypeScript
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ 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
|
```js
|
||||||
require(['ua-parser'], function(UAParser) {
|
// 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':
|
||||||
var parser = new UAParser();
|
|
||||||
console.log(parser.getResult());
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### Using component
|
// Get the details
|
||||||
|
|
||||||
```sh
|
|
||||||
$ component install faisalman/ua-parser-js
|
|
||||||
```
|
|
||||||
|
|
||||||
### Using bower
|
|
||||||
|
|
||||||
```sh
|
|
||||||
$ bower install ua-parser-js
|
|
||||||
```
|
|
||||||
|
|
||||||
### Using meteor
|
|
||||||
|
|
||||||
```sh
|
|
||||||
$ meteor add faisalman:ua-parser-js
|
|
||||||
```
|
|
||||||
|
|
||||||
### Using jQuery/Zepto ($.ua)
|
|
||||||
|
|
||||||
Although written in vanilla js (which means it doesn't depends on jQuery), this library will automatically detect if jQuery/Zepto 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
|
|
||||||
console.log($.ua.device); // {vendor: "HTC", model: "Evo Shift 4G", type: "mobile"}
|
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", version: "2.3.4"}
|
||||||
console.log($.ua.os.name); // "Android"
|
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"
|
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');
|
$.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
|
// Test again
|
||||||
@@ -236,46 +239,70 @@ console.log($.ua.browser.name); // "Safari"
|
|||||||
console.log($.ua.engine.name); // "Webkit"
|
console.log($.ua.engine.name); // "Webkit"
|
||||||
console.log($.ua.device); // {vendor: "Motorola", model: "Xoom", type: "tablet"}
|
console.log($.ua.device); // {vendor: "Motorola", model: "Xoom", type: "tablet"}
|
||||||
console.log(parseInt($.ua.browser.version.split('.')[0], 10)); // 4
|
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);
|
||||||
```
|
```
|
||||||
|
|
||||||
### Extending regex patterns
|
## Using Extension
|
||||||
|
|
||||||
* `UAParser(uastring[, extensions])`
|
* `UAParser([uastring,] extensions)`
|
||||||
|
|
||||||
Pass your own regexes to extend the limited matching rules.
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Example:
|
// Example:
|
||||||
var uaString = 'ownbrowser/1.3';
|
var myOwnListOfBrowsers = [
|
||||||
var ownBrowser = [[/(ownbrowser)\/([\w\.]+)/i], [UAParser.BROWSER.NAME, UAParser.BROWSER.VERSION]];
|
[/(mybrowser)\/([\w\.]+)/i], [UAParser.BROWSER.NAME, UAParser.BROWSER.VERSION]
|
||||||
var parser = new UAParser(uaString, {browser: ownBrowser});
|
];
|
||||||
console.log(parser.getBrowser()); // {name: "ownbrowser", version: "1.3"}
|
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"}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development
|
# Development
|
||||||
|
|
||||||
Verify, test, & minify script
|
## Sponsors
|
||||||
|
|
||||||
```sh
|
<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>
|
||||||
$ npm run test
|
|
||||||
$ npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
Then submit a pull request to https://github.com/faisalman/ua-parser-js under `develop` branch.
|
<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>
|
||||||
|
|
||||||
|
## Contributors
|
||||||
|
|
||||||
## License
|
<a href="https://github.com/faisalman/ua-parser-js/graphs/contributors">
|
||||||
|
<img src="https://contrib.rocks/image?repo=faisalman/ua-parser-js" />
|
||||||
|
</a>
|
||||||
|
|
||||||
Dual licensed under GPLv2 & MIT
|
Made with [contributors-img](https://contrib.rocks).
|
||||||
|
|
||||||
Copyright © 2012-2015 Faisal Salman <<fyzlman@gmail.com>>
|
## How To Contribute
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
* Fork and clone this repository
|
||||||
this software and associated documentation files (the "Software"), to deal in
|
* Make some changes as required
|
||||||
the Software without restriction, including without limitation the rights to use,
|
* Write unit test to showcase its functionality
|
||||||
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
|
* Run the test suites to make sure it's not breaking anything `$ npm test`
|
||||||
Software, and to permit persons to whom the Software is furnished to do so,
|
* Submit a pull request under `develop` branch
|
||||||
subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
# 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.
|
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.
|
||||||
|
|||||||
967
src/ua-parser.js
Normal file → Executable file
967
src/ua-parser.js
Normal file → Executable file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -40,13 +40,69 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"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",
|
"ua" : "Mozilla/5.0 (X11; U; Linux armv61; en-US; rv:1.9.1b2pre) Gecko/20081015 Fennec/1.0a1",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"architecture" : "arm"
|
"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" : "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" : "Pocket PC",
|
"desc" : "Pocket PC",
|
||||||
"ua" : "Opera/9.7 (Windows Mobile; PPC; Opera Mobi/35166; U; en) Presto/2.2.1",
|
"ua" : "Opera/9.7 (Windows Mobile; PPC; Opera Mobi/35166; U; en) Presto/2.2.1",
|
||||||
@@ -87,6 +143,14 @@
|
|||||||
"architecture" : "sparc"
|
"architecture" : "sparc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc" : "sparc64",
|
||||||
|
"ua" : "ELinks (0.4.3; NetBSD 3.0.2PATCH sparc64; 141x19)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"architecture" : "sparc64"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc" : "QuickTime",
|
"desc" : "QuickTime",
|
||||||
"ua" : "QuickTime/7.5.6 (qtver=7.5.6;cpu=IA32;os=Mac 10.5.8)",
|
"ua" : "QuickTime/7.5.6 (qtver=7.5.6;cpu=IA32;os=Mac 10.5.8)",
|
||||||
@@ -102,5 +166,13 @@
|
|||||||
{
|
{
|
||||||
"architecture" : "amd64"
|
"architecture" : "amd64"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "IRIX64",
|
||||||
|
"ua" : "Mozilla/4.8C-SGI [en] (X11; U; IRIX64 6.5 IP27",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"architecture" : "irix64"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"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",
|
"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",
|
"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",
|
||||||
@@ -8,6 +17,15 @@
|
|||||||
"version" : "12.0"
|
"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",
|
"desc" : "Gecko",
|
||||||
"ua" : "Mozilla/5.0 (X11; Linux x86_64; rv:2.0b9pre) Gecko/20110111 Firefox/4.0b9pre",
|
"ua" : "Mozilla/5.0 (X11; Linux x86_64; rv:2.0b9pre) Gecko/20110111 Firefox/4.0b9pre",
|
||||||
@@ -17,6 +35,15 @@
|
|||||||
"version" : "2.0b9pre"
|
"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",
|
"desc" : "KHTML",
|
||||||
"ua" : "Mozilla/5.0 (compatible; Konqueror/4.5; FreeBSD) KHTML/4.5.4 (like Gecko)",
|
"ua" : "Mozilla/5.0 (compatible; Konqueror/4.5; FreeBSD) KHTML/4.5.4 (like Gecko)",
|
||||||
@@ -70,5 +97,59 @@
|
|||||||
"name" : "WebKit",
|
"name" : "WebKit",
|
||||||
"version" : "533.19.4"
|
"version" : "533.19.4"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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" : "WebKit",
|
||||||
|
"version" : "537.36"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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" : "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
582
test/mediaplayer-test.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -107,6 +107,15 @@
|
|||||||
"version" : "6.1"
|
"version" : "6.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Windows Phone",
|
||||||
|
"ua" : "Opera/9.80 (Windows Phone; Opera Mini/7.6.8/35.7518; U; ru) Presto/2.8.119 Version/11.10",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Windows Phone",
|
||||||
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Windows Phone OS",
|
"desc" : "Windows Phone OS",
|
||||||
"ua" : "Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; DELL; Venue Pro)",
|
"ua" : "Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; DELL; Venue Pro)",
|
||||||
@@ -145,11 +154,20 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Tizen",
|
"desc" : "Tizen",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (SMART-TV; Linux; Tizen 2.3) AppleWebkit/538.1 (KHTML, like Gecko) SamsungBrowser/1.0 TV Safari/538.1",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Tizen",
|
||||||
"version" : ""
|
"version" : "2.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Tizen",
|
||||||
|
"ua" : "Mozilla/5.0 (Linux; Tizen 2.3; SAMSUNG SM-Z130H) AppleWebKit/537.3 (KHTML, like Gecko) Version/2.3 Mobile Safari/537.3",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Tizen",
|
||||||
|
"version" : "2.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -162,66 +180,138 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "WebOS",
|
"desc" : "Sailfish",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (Linux; U; Sailfish 3.0; Mobile; rv:45.0) Gecko/45.0 Firefox/45.0 SailfishBrowser/1.0",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Sailfish",
|
||||||
"version" : ""
|
"version" : "3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Palm OS",
|
"desc" : "WebOS",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (hp-tablet; Linux; hpwOS/3.0.5; U; en-US) AppleWebKit/534.6 (KHTML, like Gecko) wOSBrowser/234.83 Safari/534.6 TouchPad/1.0",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "webOS",
|
||||||
"version" : ""
|
"version" : "3.0.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "WebOS",
|
||||||
|
"ua" : "Mozilla/5.0 (webOS/1.4.5; U; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Version/1.0 Safari/532.2 Pre/1.0",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "webOS",
|
||||||
|
"version" : "1.4.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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" : "webOS",
|
||||||
|
"version" : "TV"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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" : "webOS",
|
||||||
|
"version" : "TV"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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" : "webOS",
|
||||||
|
"version" : "TV"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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" : "webOS",
|
||||||
|
"version" : "TV"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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" : "webOS",
|
||||||
|
"version" : "TV"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "QNX",
|
"desc" : "QNX",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (Photon; U; QNX x86pc; en-US; rv:1.8.1.20) Gecko/20090127 BonEcho/2.0.0.20",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "QNX",
|
||||||
"version" : ""
|
"version" : "x86pc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Bada",
|
"desc" : "Bada",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S5253/S5253DDKC1; U; Bada/1.0; en-us) AppleWebKit/533.1 (KHTML, like Gecko) Dolfin/2.0 Mobile WQVGA SMM-MMS/1.2.0 OPN-B",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Bada",
|
||||||
"version" : ""
|
"version" : "1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "RIM Tablet OS",
|
"desc" : "RIM Tablet OS",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML like Gecko) Version/7.2.1.0 Safari/536.2+",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "RIM Tablet OS",
|
||||||
"version" : ""
|
"version" : "2.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "MeeGo",
|
"desc" : "MeeGo",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "MeeGo",
|
||||||
"version" : ""
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Symbian",
|
"desc" : "Symbian",
|
||||||
"ua" : "",
|
"ua" : "Nokia5250/10.0.011 (SymbianOS/9.4; U; Series60/5.0 Mozilla/5.0; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Safari/525 3gpp-gba",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Symbian",
|
||||||
"version" : ""
|
"version" : "9.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Symbian",
|
||||||
|
"ua" : "Mozilla/5.0 (Symbian/3; Series60/5.2 NokiaC7-00/024.001; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/533.4 (KHTML, like Gecko) NokiaBrowser/7.3.1.37 Mobile Safari/533.4 3gpp-gba",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Symbian",
|
||||||
|
"version" : "5.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Series40",
|
||||||
|
"ua" : "Mozilla/5.0 (Series40; Nokia2055/03.20; Profile/MIDP-2.1 Configuration/CLDC-1.1) Gecko/20100401 S40OviBrowser/2.2.0.0.34",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Series40",
|
||||||
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -234,84 +324,228 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Nintendo",
|
"desc" : "Google Chromecast",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.183786",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Chromecast",
|
||||||
"version" : ""
|
"version" : "1.42.183786"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "PlayStation",
|
"desc" : "Nintendo Switch",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (Nintendo Switch; WifiWebAuthApplet) AppleWebKit/606.4 (KHTML, like Gecko) NF/6.0.1.15.4 NintendoBrowser/5.1.0.20393",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Nintendo",
|
||||||
"version" : ""
|
"version" : "Switch"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "PlayStation 4",
|
||||||
|
"ua" : "Mozilla/5.0 (PlayStation 4 3.00) AppleWebKit/537.73 (KHTML, like Gecko)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "PlayStation",
|
||||||
|
"version" : "4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Xbox 360",
|
||||||
|
"ua" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64; Xbox; Xbox 360) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Xbox",
|
||||||
|
"version" : "360"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Xbox One",
|
||||||
|
"ua" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64; Xbox; Xbox One; WebView/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.19041",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Xbox",
|
||||||
|
"version" : "One"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Xbox X",
|
||||||
|
"ua" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64; Xbox; Xbox X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36 Edge/20.02",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Xbox",
|
||||||
|
"version" : "X"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Xbox Series X",
|
||||||
|
"ua" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64; Xbox; Xbox Series X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36 Edge/20.02 ",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Xbox",
|
||||||
|
"version" : "Series X"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Mint",
|
"desc" : "Mint",
|
||||||
"ua" : "",
|
"ua" : "Opera/9.80 (X11; Linux x86_64; Edition Linux Mint) Presto/2.12.388 Version/12.16",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Mint",
|
||||||
"version" : ""
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Joli",
|
"desc" : "Mint",
|
||||||
"ua" : "",
|
"ua" : "Opera/9.64 (X11; Linux i686; U; Linux Mint; nb) Presto/2.1.1",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Mint",
|
||||||
"version" : ""
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Mint",
|
||||||
|
"ua" : "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Linux Mint/6 (Felicia) Firefox/3.0.4",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Mint",
|
||||||
|
"version" : "6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Ubuntu",
|
"desc" : "Ubuntu",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.22+ (KHTML, like Gecko) Chromium/17.0.963.56 Chrome/17.0.963.56 Safari/535.22+ Ubuntu/12.04 (3.4.1-0ubuntu1) Epiphany/3.4.1",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Ubuntu",
|
||||||
"version" : ""
|
"version" : "12.04"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Ubuntu",
|
||||||
|
"ua" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/31.0.1650.63 Chrome/31.0.1650.63 Safari/537.36",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Ubuntu",
|
||||||
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Kubuntu",
|
||||||
|
"ua" : "Mozilla/5.0 (compatible; Konqueror/4.4; Linux 2.6.32-22-generic; X11; en_US) KHTML/4.4.3 (like Gecko) Kubuntu",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Kubuntu",
|
||||||
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Debian",
|
"desc" : "Debian",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko) (Debian)",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Debian",
|
||||||
"version" : ""
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Debian",
|
||||||
|
"ua" : "Mozilla/5.0 (X11; Linux x86_64; Debian GNU/Linux 8.1 (jessie)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.0 Maxthon/1.0.5.3 Safari/537.36",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Debian",
|
||||||
|
"version" : "8.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Debian",
|
||||||
|
"ua" : "ELinks/0.12~pre5-4 (textmode; Debian; Linux 3.2.0-4-amd64 x86_64 192x47-2)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Debian",
|
||||||
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Debian",
|
||||||
|
"ua" : "w3m/0.5.3+debian-19",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "debian",
|
||||||
|
"version" : "19"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Debian",
|
||||||
|
"ua" : "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.3) Gecko/2008092814 (Debian-3.0.1-1)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Debian",
|
||||||
|
"version" : "3.0.1-1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Debian",
|
||||||
|
"ua" : "Mozilla/5.0 (compatible; Konqueror/3.5; Linux 2.6.24.4; X11) KHTML/3.5.9 (like Gecko) (Debian package 4:3.5.9.dfsg.1-2+b1)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Debian",
|
||||||
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "OpenSUSE",
|
"desc" : "OpenSUSE",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110420 SUSE/3.6.17-0.2.1 Firefox/3.6.17",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "SUSE",
|
||||||
"version" : ""
|
"version" : "3.6.17-0.2.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Gentoo",
|
"desc" : "Gentoo",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080716 (Gentoo) Galeon/2.0.6",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Gentoo",
|
||||||
"version" : ""
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Gentoo",
|
||||||
|
"ua" : "Xombrero (X11; U; Gentoo Linux amd64; en-US) Webkit/2.8.5",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Gentoo",
|
||||||
|
"version" : "amd64"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Gentoo",
|
||||||
|
"ua" : "Xombrero/1.6.4 (Linux amd64; en; Gentoo)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Gentoo",
|
||||||
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Gentoo",
|
||||||
|
"ua" : "Links (2.8; Linux 3.17.2-gentoo-x86 i686; GNU C 4.8.2; x)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "gentoo",
|
||||||
|
"version" : "x86"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Arch",
|
"desc" : "Arch",
|
||||||
"ua" : "",
|
"ua" : "Uzbl (Webkit 1.1.10) (Arch Linux)",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Arch",
|
||||||
"version" : ""
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -325,92 +559,56 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Fedora",
|
"desc" : "Fedora",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Fedora",
|
||||||
"version" : ""
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Fedora",
|
||||||
|
"ua" : "Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:2.0) Gecko/20110404 Fedora/16-dev Firefox/4.0",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Fedora",
|
||||||
|
"version" : "16-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Fedora",
|
||||||
|
"ua" : "Mozilla/5.0 (X11; U; Linux i686; sk; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc10 Firefox/3.0.4",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Fedora",
|
||||||
|
"version" : "3.0.4-1.fc10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Mandriva",
|
"desc" : "Mandriva",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.22) Gecko/20110907 Mandriva Linux/1.9.2.22-0.1mdv2010.2 (2010.2) Firefox/3.6.22",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Mandriva",
|
||||||
"version" : ""
|
"version" : "1.9.2.22-0.1mdv2010.2"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"desc" : "CentOS",
|
|
||||||
"ua" : "",
|
|
||||||
"expect" :
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"version" : ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"desc" : "PCLinuxOS",
|
|
||||||
"ua" : "",
|
|
||||||
"expect" :
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"version" : ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"desc" : "RedHat",
|
|
||||||
"ua" : "",
|
|
||||||
"expect" :
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"version" : ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"desc" : "Zenwalk",
|
|
||||||
"ua" : "",
|
|
||||||
"expect" :
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"version" : ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"desc" : "Hurd",
|
|
||||||
"ua" : "",
|
|
||||||
"expect" :
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"version" : ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"desc" : "Linux",
|
|
||||||
"ua" : "",
|
|
||||||
"expect" :
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"version" : ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"desc" : "GNU",
|
|
||||||
"ua" : "",
|
|
||||||
"expect" :
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"version" : ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Chromium OS",
|
"desc" : "Chromium OS",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (X11; CrOS x86_64 10575.58.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Chromium OS",
|
||||||
"version" : ""
|
"version" : "10575.58.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Fuchsia",
|
||||||
|
"ua" : "Mozilla/5.0 (X11; Fuchsia x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3557.0 Safari/537.36",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Fuchsia",
|
||||||
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -424,29 +622,29 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "FreeBSD",
|
"desc" : "FreeBSD",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (X11; U; FreeBSD x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "FreeBSD",
|
||||||
"version" : ""
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "OpenBSD",
|
"desc" : "OpenBSD",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.9.1) Gecko/20090702 Firefox/3.5",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "OpenBSD",
|
||||||
"version" : ""
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "NetBSD",
|
"desc" : "NetBSD",
|
||||||
"ua" : "",
|
"ua" : "ELinks (0.4.3; NetBSD 3.0.2PATCH sparc64; 141x19)",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "NetBSD",
|
||||||
"version" : ""
|
"version" : "3.0.2PATCH"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -458,6 +656,15 @@
|
|||||||
"version" : ""
|
"version" : ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc" : "iOS in App",
|
||||||
|
"ua" : "AppName/version CFNetwork/version Darwin/version",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "iOS",
|
||||||
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc" : "iOS with Chrome",
|
"desc" : "iOS with Chrome",
|
||||||
"ua" : "Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3",
|
"ua" : "Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3",
|
||||||
@@ -487,11 +694,74 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Haiku",
|
"desc" : "Haiku",
|
||||||
"ua" : "",
|
"ua" : "Mozilla/5.0 (Macintosh; Intel Haiku R1 x86) AppleWebKit/602.1.1 (KHTML, like Gecko) WebPositive/1.2 Version/8.0 Safari/602.1.1",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "",
|
"name" : "Haiku",
|
||||||
"version" : ""
|
"version" : "R1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "KaiOS",
|
||||||
|
"ua" : "Mozilla/5.0 (Mobile; Nokia_8110_4G; rv:48.0) Gecko/48.0 Firefox/48.0 KAIOS/2.5",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "KAIOS",
|
||||||
|
"version" : "2.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "iTunes Windows Vista",
|
||||||
|
"ua" : "iTunes/10.7 (Windows; Microsoft Windows Vista Home Premium Edition Service Pack 1 (Build 6001)) AppleWebKit/536.26.9",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Windows",
|
||||||
|
"version" : "Vista"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "iOS BE App",
|
||||||
|
"ua" : "APP-BE Test/1.0 (iPad; Apple; CPU iPhone OS 7_0_2 like Mac OS X)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "iOS",
|
||||||
|
"version" : "7.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "KTB-Nexus 5",
|
||||||
|
"ua" : "APP-My App/1.0 (Linux; Android 4.2.1; Nexus 5 Build/JOP40D)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Android",
|
||||||
|
"version" : "4.2.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Solaris",
|
||||||
|
"ua" : "NCSA Mosaic/1.0 (X11;SunOS 4.1.4 sun4m)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Solaris",
|
||||||
|
"version" : "4.1.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Raspbian",
|
||||||
|
"ua" : "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/72.0.3626.121 HeadlessChrome/72.0.3626.121 Safari/537.36",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Raspbian",
|
||||||
|
"version" : "undefined"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Raspbian",
|
||||||
|
"ua" : "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/538.15 (KHTML, like Gecko) Version/8.0 Safari/538.15 Raspbian/9.0 (1:3.8.2.0-0rpi28) Epiphany/3.8.2",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Raspbian",
|
||||||
|
"version" : "9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -567,16 +837,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "iTunes Windows Vista",
|
"desc" : "Joli",
|
||||||
"ua" : "iTunes/10.7 (Windows; Microsoft Windows Vista Home Premium Edition Service Pack 1 (Build 6001)) AppleWebKit/536.26.9",
|
|
||||||
"expect" :
|
|
||||||
{
|
|
||||||
"name" : "Windows",
|
|
||||||
"version" : "Vista"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"desc" : "",
|
|
||||||
"ua" : "",
|
"ua" : "",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
@@ -585,21 +846,75 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "iOS BE App",
|
"desc" : "CentOS",
|
||||||
"ua" : "APP-BE Test/1.0 (iPad; Apple; CPU iPhone OS 7_0_2 like Mac OS X)",
|
"ua" : "",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "iOS",
|
"name" : "",
|
||||||
"version" : "7.0.2"
|
"version" : ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"desc" : "KTB-Nexus 5",
|
"desc" : "PCLinuxOS",
|
||||||
"ua" : "APP-My App/1.0 (Linux; Android 4.2.1; Nexus 5 Build/JOP40D)",
|
"ua" : "",
|
||||||
"expect" :
|
"expect" :
|
||||||
{
|
{
|
||||||
"name" : "Android",
|
"name" : "",
|
||||||
"version" : "4.2.1"
|
"version" : ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "RedHat",
|
||||||
|
"ua" : "",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "",
|
||||||
|
"version" : ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Zenwalk",
|
||||||
|
"ua" : "",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "",
|
||||||
|
"version" : ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Hurd",
|
||||||
|
"ua" : "",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "",
|
||||||
|
"version" : ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Linux",
|
||||||
|
"ua" : "",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "",
|
||||||
|
"version" : ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "GNU",
|
||||||
|
"ua" : "",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "",
|
||||||
|
"version" : ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Palm OS",
|
||||||
|
"ua" : "",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "",
|
||||||
|
"version" : ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
103
test/test.js
103
test/test.js
File diff suppressed because one or more lines are too long
@@ -1,32 +0,0 @@
|
|||||||
{
|
|
||||||
"title": "UAParser.js",
|
|
||||||
"name": "ua-parser-js",
|
|
||||||
"version": "0.7.9",
|
|
||||||
"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/dist/ua-parser.min.js"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user