uap-core icon indicating copy to clipboard operation
uap-core copied to clipboard

Improve detection for certain browsers

Open ataylor32 opened this issue 1 year ago • 0 comments

There are three browsers I know of that could use some improvement in their detection:

Ghostery

This browser is available on Windows, macOS, Linux, Android, and iOS. The Android and iOS versions are detectable:

Android:

Mozilla/5.0 (Android 14; Mobile; rv:125.0; Ghostery:3.0) Gecko/125.0 Firefox/125.0

iOS:

Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Mobile/15E148 Safari/605.1.15 Ghostery Private Browser

Opera

This browser is available on Windows, macOS, Linux, Android, and iOS. This script usually detects Opera, but it doesn't work for the iOS version:

iOS:

Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1 OPT/4.7.0

Opera GX

This browser is available on Windows, macOS, Android, and iOS. The Android and iOS versions are detectable:

Android:

Mozilla/5.0 (Linux; Android 14; SM-G991U1 Build/UP1A.231005.007) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.6422.165 Mobile Safari/537.36 OPX/2.3

iOS:

Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1 OPX/2.5.0

ataylor32 avatar Jun 26 '24 00:06 ataylor32