Skip to content

Commit

Permalink
Adds detection for XtremeCast
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Aug 23, 2022
1 parent 0cade17 commit 98e825b
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 @@ -522,6 +522,7 @@ class Browser extends AbstractClientParser
'X0' => 'X-VPN',
'X1' => 'xBrowser Pro Super Fast',
'XN' => 'XNX Browser',
'XT' => 'XtremeCast',
'XS' => 'xStand',
'XI' => 'Xiino',
'XO' => 'Xooloo Internet',
Expand Down Expand Up @@ -566,7 +567,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', 'XN',
'F4', 'YG', 'WR', 'NA', 'DM', '1M', 'A7', 'XN', 'XT',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down Expand Up @@ -603,7 +604,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', 'XN',
'DM', '1M', 'A7', 'XN', 'XT',
];

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

0 comments on commit 98e825b

Please sign in to comment.