Skip to content

Commit

Permalink
Adds detection for X Browser Lite
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Aug 23, 2022
1 parent 98e825b commit e4cc5bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ class Browser extends AbstractClientParser
'YB' => 'Yolo Browser',
'YO' => 'YouCare',
'YZ' => 'Yuzu Browser',
'XB' => 'X Browser Lite',
'X0' => 'X-VPN',
'X1' => 'xBrowser Pro Super Fast',
'XN' => 'XNX Browser',
Expand Down Expand Up @@ -568,6 +569,7 @@ class Browser extends AbstractClientParser
'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', 'XT',
'XB',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down Expand Up @@ -604,7 +606,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', 'XT',
'DM', '1M', 'A7', 'XN', 'XT', 'XB',
];

/**
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 @@ -6933,3 +6933,14 @@
family: Chrome
headers:
http-x-requested-with: com.xtremecast
-
user_agent: Mozilla/5.0 (Linux; Android 12; SM-M315F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/101.0.4951.61 Mobile Safari/537.36
client:
type: browser
name: X Browser Lite
version: ""
engine: Blink
engine_version: 101.0.4951.61
family: Chrome
headers:
http-x-requested-with: com.xvideobrowserlite.xvideoDownloaderbrowserlite
1 change: 1 addition & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,4 @@
'com.veeraapps.newadult': 'Adult Browser'
'com.xnxbrowser.rampage': 'XNX Browser'
'com.xtremecast': 'XtremeCast'
'com.xvideobrowserlite.xvideoDownloaderbrowserlite': 'X Browser Lite'

0 comments on commit e4cc5bd

Please sign in to comment.