Skip to content

Commit

Permalink
Adds detection for Ocean Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Feb 7, 2024
1 parent 4cd824c commit 9ecd5fc
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 @@ -378,6 +378,7 @@ class Browser extends AbstractClientParser
'NT' => 'NTENT Browser',
'NU' => 'Nuanti Meta',
'NI' => 'Nuviu',
'O9' => 'Ocean Browser',
'OC' => 'Oculus Browser',
'O6' => 'Odd Browser',
'O1' => 'Opera Mini iOS',
Expand Down Expand Up @@ -630,7 +631,7 @@ class Browser extends AbstractClientParser
'O6', 'P7', 'LJ', 'LC', 'O7', 'N2', 'A8', 'P8', 'RB',
'1W', 'EV', 'I9', 'V4', 'H4', '1T', 'M5', '0S', '0C',
'ZR', 'D6', 'F6', 'RC', 'WD', 'P3', 'FT', 'A9', 'X2',
'N3', 'GD',
'N3', 'GD', 'O9',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down Expand Up @@ -671,7 +672,7 @@ class Browser extends AbstractClientParser
'B9', 'T0', 'I8', 'O6', 'P7', 'O8', '4B', 'A8', 'P8',
'1W', 'EV', 'Z0', 'I9', 'V4', 'H4', 'M5', '0S', '0C',
'ZR', 'D6', 'F6', 'P3', 'FT', 'A9', 'X2', 'NI', 'FG',
'TH', 'N3', 'GD',
'TH', 'N3', 'GD', 'O9',
];

/**
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 @@ -8103,3 +8103,14 @@
family: Chrome
headers:
http-x-requested-with: com.mosoft.godzilla
-
user_agent: Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/112.0.5615.101 Mobile DuckDuckGo/105 Safari/537.36
client:
type: browser
name: Ocean Browser
version: ""
engine: Blink
engine_version: 112.0.5615.101
family: Chrome
headers:
http-x-requested-with: com.oceanbrowser.mobile.android
1 change: 1 addition & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,4 @@
'threads.thor': 'Thor'
'com.androidbull.incognito.browser': 'Incognito Browser'
'com.mosoft.godzilla': 'Godzilla Browser'
'com.oceanbrowser.mobile.android': 'Ocean Browser'

0 comments on commit 9ecd5fc

Please sign in to comment.