Skip to content

Commit

Permalink
Adds detection for Singlebox and improves detection for Skye (#7899)
Browse files Browse the repository at this point in the history
* Improves detection for Skye
ref #7898 
* Adds detection for Singlebox
ref #7897
  • Loading branch information
liviuconcioiu authored Nov 5, 2024
1 parent 597a745 commit f134462
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ class Browser extends AbstractClientParser
'K1' => 'Sidekick',
'S1' => 'SimpleBrowser',
'3S' => 'SilverMob US',
'ZB' => 'Singlebox',
'SY' => 'Sizzy',
'K3' => 'Skye',
'SK' => 'Skyfire',
Expand Down Expand Up @@ -769,7 +770,7 @@ class Browser extends AbstractClientParser
'M9', 'F9', '0P', '0A', 'JR', 'D3', 'TK', 'BP', '2F',
'2M', 'K7', '1N', '8A', 'H7', 'X3', 'T4', 'X4', '5O',
'8C', '3M', '6I', '2P', 'PU', '7I', 'X5', 'AL', '3P',
'W2',
'W2', 'ZB',
],
'Firefox' => [
'FF', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down
18 changes: 18 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10321,3 +10321,21 @@
engine: Blink
engine_version: 107.0.4280.88
family: Chrome
-
user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Skye/6.4.1 Chrome/96.0.4664.110 Electron/16.0.7 Safari/537.36
client:
type: browser
name: Skye
version: 6.4.1
engine: Blink
engine_version: 96.0.4664.110
family: Chrome
-
user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Singlebox/38.2.0 Chrome/116.0.5845.190 Electron/26.2.2 Safari/537.36
client:
type: browser
name: Singlebox
version: 38.2.0
engine: Blink
engine_version: 116.0.5845.190
family: Chrome
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
###############

# Singlebox (https://singlebox.app/en/)
- regex: 'Singlebox/(\d+\.[\.\d]+)'
name: 'Singlebox'
version: '$1'
engine:
default: 'Blink'

# RCA Tor Explorer
- regex: 'RCATorExplorer'
name: 'RCA Tor Explorer'
Expand Down
2 changes: 1 addition & 1 deletion regexes/client/mobile_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2571,7 +2571,7 @@
version: '$1'

# Electron generic apps
- regex: ' (?!(?:AppleWebKit|brave|Franz|Mailspring|Notion|Basecamp|Evernote|catalyst|ramboxpro|BlueMail|BeakerBrowser|Dezor|TweakStyle|Colibri|Polypane|VibeMate|(?:d|LT|Glass|Sushi|Flash|OhHai)Browser|Sizzy))([a-z0-9]*)(?:-desktop|-electron-app)?/(\d+\.[\d.]+).*Electron/'
- regex: ' (?!(?:AppleWebKit|brave|Franz|Mailspring|Notion|Basecamp|Evernote|catalyst|ramboxpro|BlueMail|BeakerBrowser|Dezor|TweakStyle|Colibri|Polypane|Singlebox|Skye|VibeMate|(?:d|LT|Glass|Sushi|Flash|OhHai)Browser|Sizzy))([a-z0-9]*)(?:-desktop|-electron-app)?/(\d+\.[\d.]+).*Electron/'
name: '$1'
version: '$2'

Expand Down

0 comments on commit f134462

Please sign in to comment.