Skip to content

Commit

Permalink
feat(client) detect Asus Browser
Browse files Browse the repository at this point in the history
feat(client) detect Quick Browser
feat(client) detect Opera Touch

issue matomo-org#7039
  • Loading branch information
sanchezzzhak committed Mar 30, 2022
1 parent bcbd4aa commit 91505b6
Show file tree
Hide file tree
Showing 3 changed files with 38 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 @@ -87,6 +87,7 @@ class Browser extends AbstractClientParser
'AW' => 'Amiga Aweb',
'AI' => 'Arvin',
'AK' => 'Ask.com',
'AU' => 'Asus Browser',
'A0' => 'Atom',
'AT' => 'Atomic Web Browser',
'A2' => 'Atlas',
Expand Down Expand Up @@ -347,6 +348,7 @@ class Browser extends AbstractClientParser
'Q2' => 'QQ Browser Lite',
'Q1' => 'QQ Browser Mini',
'QQ' => 'QQ Browser',
'QS' => 'Quick Browser',
'QT' => 'Qutebrowser',
'QU' => 'Quark',
'QZ' => 'QupZilla',
Expand Down
33 changes: 33 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5344,3 +5344,36 @@
family: Chrome
headers:
x-requested-with: com.transsion.phoenix
-
user_agent: Mozilla/5.0 (Linux; Android 10; CPH2185 Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/92.0.4515.131 Mobile Safari/537.36
client:
type: browser
name: Quick Browser
version: ""
engine: Blink
engine_version: 92.0.4515.131
family: Chrome
headers:
x-requested-with: quick.browser.secure
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; ASUS_X014D Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/95.0.4638.74 Mobile Safari/537.36
client:
type: browser
name: Asus Browser
version: ""
engine: Blink
engine_version: 95.0.4638.74
family: Chrome
headers:
x-requested-with: com.asus.browser
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; meizu M8 Build/O11019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.104 Mobile Safari/537.36
client:
type: browser
name: Opera Touch
version: ""
engine: Blink
engine_version: 96.0.4664.104
family: Opera
headers:
x-requested-with: com.opera.touch
3 changes: 3 additions & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@
'com.anc.web.browser': 'Comfort Browser'
'fast.explorer.web.browser': 'Fast Explorer'
'com.transsion.phoenix': 'Phoenix Browser'
'quick.browser.secure': 'Quick Browser'
'com.asus.browser': 'Asus Browser'
'com.opera.touch': 'Opera Touch'

0 comments on commit 91505b6

Please sign in to comment.