Skip to content

Commit

Permalink
feat(client) detect browsers: Soul Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed Mar 20, 2022
1 parent dd46ab2 commit 292dbd8
Show file tree
Hide file tree
Showing 4 changed files with 49 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 @@ -353,6 +353,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 @@ -373,7 +375,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 @@ -461,7 +462,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',
'DC', 'G8', '2S',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down
38 changes: 38 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5092,3 +5092,41 @@
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: ""
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: ""
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: ""
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: ""
family: Chrome
headers:
X-Requested-With: com.mycompany.app.soulbrowser
7 changes: 7 additions & 0 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,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
1 change: 1 addition & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@
'org.lineageos.jelly': 'Jelly'
'com.opera.gx': 'Opera GX'
'com.ucold.browser.secure.browse': 'UC Browser Mini'
'com.mycompany.app.soulbrowser': 'Soul Browser'

0 comments on commit 292dbd8

Please sign in to comment.