regexes.device.consoles.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of DeviceDetector Show documentation
Show all versions of DeviceDetector Show documentation
通用设备检测库将解析任何UserAgent并检测浏览器、操作系统、使用的设备(桌面、平板、移动、电视、车载、游戏机等等)、品牌和型号。
###############
# Device Detector - The Universal Device Detection library for parsing User Agents
#
# @link https://matomo.org
# @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later
###############
Archos:
regex: 'Archos.*GAMEPAD([2]?)'
device: 'console'
model: 'Gamepad $1'
Microsoft:
regex: 'Xbox'
device: 'console'
models:
- regex: 'Xbox Series X'
model: 'Xbox Series X'
- regex: 'Xbox One X'
model: 'Xbox One X'
- regex: 'Xbox One'
model: 'Xbox One'
- regex: 'XBOX_ONE_ED'
model: 'Xbox One S'
- regex: 'Xbox'
model: 'Xbox 360'
Nintendo:
regex: 'Nintendo (([3]?DS[i]?)|Wii[U]?|Switch)'
device: 'console'
model: '$1'
OUYA:
regex: 'OUYA'
device: 'console'
model: 'OUYA'
Sega:
regex: 'Dreamcast'
device: 'console'
model: 'Dreamcast'
JXD:
regex: 'JXD_S601WIFI'
device: 'console'
model: 'S601 WiFi'
Sony:
regex: 'PlayStation ?(2|3|4 Pro|4|5|Portable|Vita)'
device: 'console'
model: 'PlayStation $1'
# Retroid Pocket (www.goretroid.com)
Retroid Pocket:
regex: 'Retroid Pocket 2(?:Plus|\+)'
device: 'console'
model: '2 Plus'