Skip to content

Commit

Permalink
Adds detection for Qmamu
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Feb 7, 2024
1 parent 9ecd5fc commit 49887d7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ class Browser extends AbstractClientParser
'RW' => 'Reqwireless WebViewer',
'PS' => 'Microsoft Edge',
'QA' => 'Qazweb',
'Q3' => 'Qmamu',
'Q2' => 'QQ Browser Lite',
'Q1' => 'QQ Browser Mini',
'QQ' => 'QQ Browser',
Expand Down Expand Up @@ -631,7 +632,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', 'O9',
'N3', 'GD', 'O9', 'Q3',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down Expand Up @@ -672,7 +673,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', 'O9',
'TH', 'N3', 'GD', 'O9', 'Q3',
];

/**
Expand Down
13 changes: 12 additions & 1 deletion Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8112,5 +8112,16 @@
engine: Blink
engine_version: 112.0.5615.101
family: Chrome
headers:
headers:
http-x-requested-with: com.oceanbrowser.mobile.android
-
user_agent: Mozilla/5.0 (Linux; Android 12) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.129 Mobile DuckDuckGo/1 Safari/537.36
client:
type: browser
name: Qmamu
version: ""
engine: Blink
engine_version: 103.0.5060.129
family: Chrome
headers:
http-x-requested-with: com.qmamu.browser
1 change: 1 addition & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,4 @@
'com.androidbull.incognito.browser': 'Incognito Browser'
'com.mosoft.godzilla': 'Godzilla Browser'
'com.oceanbrowser.mobile.android': 'Ocean Browser'
'com.qmamu.browser': 'Qmamu'

0 comments on commit 49887d7

Please sign in to comment.