Skip to content

Commit

Permalink
Adds detection for Thor browser
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Feb 7, 2024
1 parent 015882d commit af2bd50
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ class Browser extends AbstractClientParser
'TR' => 'T-Browser',
'TO' => 't-online.de Browser',
'TA' => 'Tao Browser',
'TH' => 'Thor',
'1T' => 'Tor Browser',
'TF' => 'TenFourFox',
'TB' => 'Tenta Browser',
Expand Down Expand Up @@ -667,6 +668,7 @@ class Browser extends AbstractClientParser
'B9', 'T0', 'I8', 'O6', 'P7', 'O8', '4B', 'A8', 'P8',
'1W', 'EV', 'Z0', 'I9', 'V4', 'H4', 'M5', '0S', '0C',
'ZR', 'D6', 'F6', 'P3', 'FT', 'A9', 'X2', 'NI', 'FG',
'TH',
];

/**
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 @@ -8070,3 +8070,14 @@
engine:
engine_version:
family:
-
user_agent: Mozilla/5.0 (Linux; Android 10)
client:
type: browser
name: Thor
version: ""
engine: WebKit
engine_version: ""
family: Android Browser
headers:
http-x-requested-with: threads.thor
1 change: 1 addition & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,4 @@
'com.airfind.browser': 'Airfind Secure Browser'
'com.securex.browser': 'SecureX'
'com.sec.android.app.sbrowser.beta': 'Samsung Browser'
'threads.thor': 'Thor'

0 comments on commit af2bd50

Please sign in to comment.