Skip to content

Commit

Permalink
Adds detection for Bloket
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Jul 7, 2022
1 parent dc6e544 commit 9557791
Show file tree
Hide file tree
Showing 4 changed files with 22 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 @@ -111,6 +111,7 @@ class Browser extends AbstractClientParser
'B2' => 'Berry Browser',
'BT' => 'Bitchute Browser',
'BH' => 'BlackHawk',
'B0' => 'Bloket',
'BJ' => 'Bunjalloo',
'BL' => 'B-Line',
'BU' => 'Blue Browser',
Expand Down Expand Up @@ -530,7 +531,7 @@ class Browser extends AbstractClientParser
'2S', 'RF', 'LR', 'SQ', 'BV', 'L1', 'F0', 'KS', 'V0',
'C8', 'AZ', 'MM', 'BT', 'N0', 'P0', 'F3', 'VS', 'DU',
'D0', 'P1', 'O4', '8S', 'H3', 'TE', 'WB', 'K1', 'P2',
'XO', 'U0',
'XO', 'U0', 'B0',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down Expand Up @@ -565,7 +566,7 @@ class Browser extends AbstractClientParser
'YO', 'PK', 'MR', 'AP', 'AK', 'UI', 'SD', 'VN', '4S',
'RF', 'LR', 'SQ', 'BV', 'L1', 'F0', 'KS', 'V0', 'C8',
'AZ', 'MM', 'BT', 'N0', 'P0', 'F3', 'DU', 'D0', 'P1',
'O4', 'XO', 'U0',
'O4', 'XO', 'U0', 'B0',
];

/**
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 @@ -6130,3 +6130,14 @@
family: Chrome
headers:
http-x-requested-with: com.u_browser
-
user_agent: Mozilla/5.0 (Linux; Android 10; SM-M015G Build/QP1A.190711.020) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.96 Mobile Safari/537.36 bloket
client:
type: browser
name: Bloket
version: ""
engine: Blink
engine_version: 81.0.4044.96
family: Chrome
headers:
http-x-requested-with: ai.blokee.browser.android
7 changes: 7 additions & 0 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later
###############

# Bloket (https://play.google.com/store/apps/details?id=ai.blokee.browser.android)
- regex: 'bloket'
name: 'Bloket'
version: ''
engine:
default: 'Blink'

# U Browser (https://play.google.com/store/apps/details?id=com.u_browser)
- regex: '(.*)U Browser(\d+\.[\.\d]+)'
name: 'U Browser'
Expand Down
1 change: 1 addition & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,4 @@
'pi.browser': 'Pi Browser'
'com.xooloo.internet': 'Xooloo Internet'
'com.u_browser': 'U Browser'
'ai.blokee.browser.android': 'Bloket'

0 comments on commit 9557791

Please sign in to comment.