Skip to content

Commit

Permalink
Adds detection for XNX Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Aug 23, 2022
1 parent 4b03c46 commit 0cade17
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 @@ -521,6 +521,7 @@ class Browser extends AbstractClientParser
'YZ' => 'Yuzu Browser',
'X0' => 'X-VPN',
'X1' => 'xBrowser Pro Super Fast',
'XN' => 'XNX Browser',
'XS' => 'xStand',
'XI' => 'Xiino',
'XO' => 'Xooloo Internet',
Expand Down Expand Up @@ -565,7 +566,7 @@ class Browser extends AbstractClientParser
'D0', 'P1', 'O4', '8S', 'H3', 'TE', 'WB', 'K1', 'P2',
'XO', 'U0', 'B0', 'VA', 'X0', 'NX', 'O5', 'R1', 'I1',
'HO', 'A5', 'X1', '18', 'B5', 'B6', 'TC', 'A6', '2X',
'F4', 'YG', 'WR', 'NA', 'DM', '1M', 'A7',
'F4', 'YG', 'WR', 'NA', 'DM', '1M', 'A7', 'XN',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down Expand Up @@ -602,7 +603,7 @@ class Browser extends AbstractClientParser
'AZ', 'MM', 'BT', 'N0', 'P0', 'F3', 'DU', 'D0', 'P1',
'O4', 'XO', 'U0', 'B0', 'VA', 'X0', 'A5', 'X1', '18',
'B5', 'B6', 'TC', 'A6', '2X', 'F4', 'YG', 'WR', 'NA',
'DM', '1M', 'A7',
'DM', '1M', 'A7', 'XN',
];

/**
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 @@ -6911,3 +6911,14 @@
family: Chrome
headers:
http-x-requested-with: com.veeraapps.newadult
-
user_agent: Mozilla/5.0 (Linux; Android 12; SM-G998B Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.101 Mobile Safari/537.36
client:
type: browser
name: XNX Browser
version: ""
engine: Blink
engine_version: 98.0.4758.101
family: Chrome
headers:
http-x-requested-with: com.xnxbrowser.rampage
1 change: 1 addition & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,4 @@
'idm.internet.download.manager': '1DM Browser'
'idm.internet.download.manager.plus': '1DM+ Browser'
'com.veeraapps.newadult': 'Adult Browser'
'com.xnxbrowser.rampage': 'XNX Browser'

0 comments on commit 0cade17

Please sign in to comment.