Skip to content

Commit

Permalink
Adds detection for Ui Browser Mini
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Mar 21, 2022
1 parent 2a66300 commit de0d5f7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ class Browser extends AbstractClientParser
'UH' => 'UC Browser HD',
'UM' => 'UC Browser Mini',
'UT' => 'UC Browser Turbo',
'UI' => 'Ui Browser Mini',
'UR' => 'UR Browser',
'UZ' => 'Uzbl',
'UE' => 'Ume Browser',
Expand Down Expand Up @@ -463,7 +464,7 @@ class Browser extends AbstractClientParser
'VG', 'VI', 'VM', 'WP', 'WH', 'XV', 'YJ', 'YN', 'FH',
'B1', 'BO', 'HB', 'PC', 'LA', 'LT', 'PD', 'HR', 'HU',
'HP', 'IO', 'TP', 'CJ', 'HQ', 'HI', 'NA', 'BW', 'YO',
'DC', 'G8', 'DT', 'AP', 'AK',
'DC', 'G8', 'DT', 'AP', 'AK', 'UI',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down Expand Up @@ -495,7 +496,7 @@ class Browser extends AbstractClientParser
'PE', 'QU', 'RE', 'S0', 'S7', 'SA', 'SB', 'SG', 'SK',
'ST', 'SU', 'T1', 'UH', 'UM', 'UT', 'VE', 'VV', 'WI',
'WP', 'YN', 'IO', 'IS', 'HQ', 'RW', 'HI', 'NA', 'BW',
'YO', 'PK', 'MR', 'AP', 'AK',
'YO', 'PK', 'MR', 'AP', 'AK', 'UI',
];

/**
Expand Down
11 changes: 11 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5136,3 +5136,14 @@
family: Chrome
headers:
X-Requested-With: com.browser.tssomas
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; vivo 1811 Build/OPM1.171019.026; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/84.0.4147.89 Mobile Safari/537.36
client:
type: browser
name: Ui Browser Mini
version: ""
engine: Blink
engine_version: ""
family: Chrome
headers:
X-Requested-With: yuce.browser.mini
1 change: 1 addition & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@
'com.apusapps.browser': 'APUS Browser'
'com.ask.browser': 'Ask.com'
'com.browser.tssomas': 'Super Fast Browser'
'yuce.browser.mini': 'Ui Browser Mini'

0 comments on commit de0d5f7

Please sign in to comment.