Skip to content

Commit

Permalink
Detect browsers: UC Browser Mini, Soul Browser, Indian UC Mini Browse…
Browse files Browse the repository at this point in the history
…r, Opera, Opera Mini, Fast Explorer, Comfort Browser, CM Mini, SilverMob US (#7061)

* feat(client) detect browsers: UC Browser Mini
* feat(client) detect browsers: Soul Browser
* feat(client) detect browsers: Indian UC Mini Browser
* feat(client) detect Opera browser
* feat(client) detect Opera Mini browser
* feat(client) detect SilverMob US browser
* feat(client) detect Fast Explorer browser
* feat(client) detect CM Mini browser
* feat(client) detect Comfort Browser

issue #7039
  • Loading branch information
sanchezzzhak authored Mar 29, 2022
1 parent 8a56cea commit 4aa8610
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Browser extends AbstractClientParser
'1P' => 'Pure Mini Browser',
'1R' => 'Raise Fast Browser',
'FQ' => 'Fast Browser UC Lite',
'FJ' => 'Fast Explorer',
'1L' => 'Lightning Browser',
'1C' => 'Cake Browser',
'1I' => 'IE Browser Fast',
Expand Down Expand Up @@ -124,6 +125,7 @@ class Browser extends AbstractClientParser
'C1' => 'Coast',
'CX' => 'Charon',
'CE' => 'CM Browser',
'C7' => 'CM Mini',
'CF' => 'Chrome Frame',
'HC' => 'Headless Chrome',
'CH' => 'Chrome',
Expand All @@ -132,6 +134,7 @@ class Browser extends AbstractClientParser
'CM' => 'Chrome Mobile',
'CN' => 'CoolNovo',
'CO' => 'CometBird',
'2C' => 'Comfort Browser',
'CB' => 'COS Browser',
'CW' => 'Cornowser',
'C3' => 'Chim Lac',
Expand Down Expand Up @@ -222,6 +225,7 @@ class Browser extends AbstractClientParser
'IV' => 'Isivioo',
'IW' => 'Iceweasel',
'IE' => 'Internet Explorer',
'I5' => 'Indian UC Mini Browser',
'IM' => 'IE Mobile',
'IR' => 'Iron',
'JB' => 'Japan Browser',
Expand Down Expand Up @@ -356,6 +360,8 @@ class Browser extends AbstractClientParser
'S8' => 'Seewo Browser',
'SC' => 'SEMC-Browser',
'SE' => 'Sogou Explorer',
'SO' => 'Sogou Mobile Browser',
'2S' => 'Soul Browser',
'SF' => 'Safari',
'PV' => 'Safari Technology Preview',
'S5' => 'Safe Exam Browser',
Expand All @@ -366,6 +372,7 @@ class Browser extends AbstractClientParser
'SV' => 'SFive',
'SH' => 'Shiira',
'S1' => 'SimpleBrowser',
'3S' => 'SilverMob US',
'SY' => 'Sizzy',
'SK' => 'Skyfire',
'SS' => 'Seraphic Sraf',
Expand All @@ -378,7 +385,6 @@ class Browser extends AbstractClientParser
'LE' => 'Smart Lenovo Browser',
'OZ' => 'Smooz',
'SN' => 'Snowshoe',
'SO' => 'Sogou Mobile Browser',
'B1' => 'Spectre Browser',
'S2' => 'Splash',
'SI' => 'Sputnik Browser',
Expand Down Expand Up @@ -469,6 +475,7 @@ class Browser extends AbstractClientParser
'B1', 'BO', 'HB', 'PC', 'LA', 'LT', 'PD', 'HR', 'HU',
'HP', 'IO', 'TP', 'CJ', 'HQ', 'HI', 'NA', 'BW', 'YO',
'DC', 'G8', 'DT', 'AP', 'AK', 'UI', 'SD', 'VN', '4S',
'2S',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down
126 changes: 126 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5207,3 +5207,129 @@
engine: Blink
engine_version: ""
family:
-
user_agent: Mozilla/5.0 (Linux; Android 11; SM-A022G Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.98 Mobile Safari/537.36
client:
type: browser
name: UC Browser Mini
version: ""
engine: Blink
engine_version: "97.0.4692.98"
family: Chrome
headers:
X-Requested-With: com.ucold.browser.secure.browse
-
user_agent: Mozilla/5.0 (Linux; Android 11; M2007J3SG Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.45 Mobile Safari/537.36 SoulBrowser
client:
type: browser
name: Soul Browser
version: ""
engine: Blink
engine_version: "96.0.4664.45"
family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; M2007J3SY Build/RKQ1.200826.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.98 Mobile Safari/537.36 Soul
client:
type: browser
name: Soul Browser
version: ""
engine: Blink
engine_version: "97.0.4692.98"
family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9; Redmi Note 5 Build/PKQ1.180904.001) AppleWebKit/537.36 (KHTML, like Gecko) Soul/4.0 Chrome/96.0.4664.104 Mobile Safari/537.36
client:
type: browser
name: Soul Browser
version: ""
engine: Blink
engine_version: "96.0.4664.104"
family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; M2010J19SG Build/RKQ1.201004.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.87 Mobile Safari/537.36
client:
type: browser
name: Soul Browser
version: ""
engine: Blink
engine_version: "98.0.4758.87"
family: Chrome
headers:
X-Requested-With: com.mycompany.app.soulbrowser
-
user_agent: Mozilla/5.0 (Linux; Android 11; SM-M127F Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.98 Mobile Safari/537.36
client:
type: browser
name: Indian UC Mini Browser
version: ""
engine: Blink
engine_version: "97.0.4692.98"
family: Chrome
headers:
x-requested-with: com.quickbig.browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 11; en-us; CPH2069 Build/JOP24G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/69.0.3497.100 Mobile Safari/537.36
client:
type: browser
name: Opera
version: ""
engine: Blink
engine_version: "69.0.3497.100"
family: Opera
headers:
x-requested-with: com.opera.browser
-
user_agent: Mozilla/5.0 (Linux; Android 11; RMX3231 Build/RP1A.201005.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.45 Mobile Safari/537.36
client:
type: browser
name: Opera Mini
version: ""
engine: Blink
engine_version: "96.0.4664.45"
family: Opera
headers:
x-requested-with: com.opera.mini.native
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; Plane 1506 4G PS1084ML Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/52.0.2743.98 Safari/537.36
client:
type: browser
name: SilverMob US
version: ""
engine: Blink
engine_version: "52.0.2743.98"
family: Chrome
headers:
x-requested-with: com.wSilverMobBrowser
-
user_agent: Mozilla/5.0 (Linux; Android 11; SM-G970F Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.104 Mobile Safari/537.36
client:
type: browser
name: Fast Explorer
version: ""
engine: Blink
engine_version: "96.0.4664.104"
family: Chrome
headers:
x-requested-with: fast.explorer.web.browser
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; H96 Max+ Build/OPM6.171019.030.B1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Safari/537.36
client:
type: browser
name: CM Mini
version: ""
engine: Blink
engine_version: "81.0.4044.138"
family: Chrome
headers:
x-requested-with: org.mini.freebrowser
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; SM-J710F Build/M1AJQ; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.98 Mobile Safari/537.36
client:
type: browser
name: Comfort Browser
version: ""
engine: Blink
engine_version: "97.0.4692.98"
family: Chrome
headers:
x-requested-with: com.anc.web.browser
7 changes: 7 additions & 0 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2016,6 +2016,13 @@
versions:
28: 'Blink'

# Soul Browser (https://play.google.com/store/apps/details?id=com.mycompany.app.soulbrowser)
- regex: 'Soul(?:Browser)?$|Soul/'
name: 'Soul Browser'
version: ''
engine:
default: 'Blink'

# LG Browser
- regex: 'LG Browser(?:/(\d+[\.\d]+))'
name: 'LG Browser'
Expand Down
9 changes: 9 additions & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@
'SavySoda.PrivateBrowsing': 'SavySoda'
'savannah.internet.web.browser': 'Savannah Browser'
'com.gl9.cloudBrowser': 'Surf Browser'
'com.ucold.browser.secure.browse': 'UC Browser Mini'
'com.mycompany.app.soulbrowser': 'Soul Browser'
'com.quickbig.browser': 'Indian UC Mini Browser' # (alternative name Splash UC Mini Browser)
'com.opera.browser': 'Opera'
'com.opera.mini.native': 'Opera Mini'
'com.wSilverMobBrowser': 'SilverMob US'
'org.mini.freebrowser': 'CM Mini'
'com.anc.web.browser': 'Comfort Browser'
'fast.explorer.web.browser': 'Fast Explorer'

0 comments on commit 4aa8610

Please sign in to comment.