I'm a front-end developer
My Website: passer-by.com
浏览器检测 - Useragent分析/浏览器识别/浏览器判断/UA解析/用户代理信息_Useragent analysis tool_Browser detector
Home Page: https://passer-by.com/browser/
License: MIT License
还有其他办法判断是Vivaldi浏览器吗?
360极速浏览器:
版本号: 9.5.0.136
内核版本: 63.0.3239.132
360安全浏览器
版本号: 10.0.1350.0
内核版本: 63.0.3239.132
UA 格式为:Mozilla/5.0 (X11; Linux x86_64) KHTML/5.71.0 (like Gecko) Konqueror/5 KIO/5.71
您好,详细信息如下:
浏览器下载地址:
https://down.360safe.com/cse/360Browser_for_mac_12.2.1636.0.dmg
系统版本:macOS Big Sur 11.1
检测结果:
Mozilla/5.0 (Macintosh; Intel Mac OS X -1_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
浏览器 版本 内核 操作系统 设备 语言
Chrome 78.0.3904.108 Blink Mac OS Mozilla/5.0 (Macintosh; Intel Mac OS X -1.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 PC zh_CN
项目地址 Useragent分析 返回首页
IP 138 UserAgent分析和查询
服务端获取的UserAgent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
客户端获取的UserAgent:
Mozilla/5.0 (Macintosh; Intel Mac OS X -1_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
浏览器信息:
名称 版本号 渲染引擎 操作系统
Chrome 78.0.3904.108 WebKit 537.36 Mac OS undefined
首先谢谢开源这个功能,非常好用!
当前我们在使用过程中,会发现很多爬虫类数据,能否增加一个爬虫UA的解析并判断是爬虫呢?
使用 Chrome 45.0.2454.101 x64 在 Windows 10 1803 下进行测试
从 f986f8c9ae7b793ff59addfe825af5d64ae82245 到目前最新版本均有此问题:
而 bd7c6bad53603f2d09700cbae4de97beb15b7599 及以下版本判断正常:
推测是新加的360浏览器判断规则不够完善, 烦请抽空修复一下, 非常感谢!
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 OPR/56.0.3051.43 (Edition Baidu)
Opera的UA里出现了Baidu导致被识别为Baidu,把js里hash对象中Opera
放到Baidu
后面应该就能解决了。
Cannot read property 'saveData' of undefined
区别于微信和企业微信打开
Chromium的edge浏览器马上发布,在edge dev版本测试,识别为chrome浏览器了。
useragent:
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3952.0 Safari/537.36 Edg/80.0.320.4"
require('./Browser')引入js,直接报错
ReferenceError: navigator is not defined
错误地方是if(navigator.userAgentData)这里,不是很熟悉nodejs,也不知道如何排查,还望楼主能解答一下,不胜感激
navigator.userAgentData.getHighEntropyValues(["platformVersion"])
.then(ua => {
if (navigator.userAgentData.platform === "Windows") {
const majorPlatformVersion = parseInt(ua.platformVersion.split('.')[0]);
if (majorPlatformVersion >= 13) {
console.log("Windows 11 or later");
}
else if (majorPlatformVersion > 0) {
console.log("Windows 10");
}
else {
console.log("Before Windows 10");
}
}
else {
console.log("Not running on Windows");
}
});
等有时间,我想提交一个 PR 给仓库不知道是否可以
Edge Beta/Dev/Canary 的内核会显示为EdgeHTML,但实际为Chromium
Below is your comments on the top of the code
/**
* 浏览器解析,浏览器、Node.js皆可
* https://github.com/mumuy/browser
*/
I use this script on NodeJs,but var _window = window||{};
throw error,window is not defined.
用webpack打包的话 就报错Uncaught ReferenceError: Browser is not - defined。这个怎么去解决
手机端应该要怎么来判断出来。
ios 新版 ipad pro 更改了浏览器ua,因此判断方法变更为
isiPad = (navigator.userAgent.match(/(iPad)/) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1))
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; InfoPath.3; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; SE 2.X MetaSr 1.0; rv:11.0) like Gecko
例如上方这个是搜狗的兼容模式,IE 11 兼容模式,但返回的是搜狗。其实返回的是最后一个 rv:11.0
For example, this is the Sogou compatibility mode, IE 11 compatible mode, but the return is Sogou. In fact, the return is the last rv: 11.0
火狐浏览器正式版会被判断为 Firefox Nightly
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:99.0) Gecko/20100101 Firefox/99.0
并且系统版本也判断错误 Mac OS 10
android端360浏览器和360极速浏览器都会识别为Chrome浏览器,还有华为自带的浏览器会识别为safari浏览器
如题。
另外ie8兼容模式被判断为ie7了
DingTakl - 钉钉手机客户端
应该为DingTalk
以及,是否可以考虑支持检测欧朋浏览器(北界无限(北京)软件有限公司)?
手机端应该要怎么来判断出来。
现在抖音消息打开链接,UA信息返回Safari
在极速模式下,两个浏览器现在是可以区分的,但是在兼容模式下两个浏览器都会被判断成IE,辛苦~
The ways to judge if it's Huawei browser is
'Huawei': u.indexOf('HuaweiBrowser') > -1||u.indexOf('HUAWEI') > -1
But i found that other browsers installed on huawei also contain HUAWEIIJKM
.
Huawei's default browser's kernal is X5(QQBrowser), so i think regarding it as QQBrowser may be more reasonable.
期待回复
liebao 猎豹识别不出来
device: "PC"
language: "zh_CN"
engine: "Blink"
browser: "Chrome"
os: "Windows"
osVersion: "7"
version: "79.0.3945.79"
还是显示chrome.
手机端华为浏览器可以正确失败,PC端的华为浏览器识别的结果是谷歌
https://github.com/Gavin-Paolucci-Kleinow/ie-truth
Gavin-Paolucci-Kleinow 的 ie-truth 能判斷出IE相容模式下的真實版本, 能把這個抄過來嗎.
當然目前的 ActingVersion 還是要保留的.
使用手机百度浏览器无法获取信息,
使用window.navigator.userAgent输出信息如下:
Mozilla/5.0 (Linux; Android 8.0.0; EDI-AL10 Build/HUAWEIEDISON-AL10; wv) AppleWebKit/537.36
(KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/11.11 baiduboxapp/11.11.0.12 (Baidu; P1 8.0.0)
可以检测平台是32位还是64位吗?
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 OPR/56.0.3051.43 (Edition Baidu)
Opera的UA里出现了Baidu
导致被识别为Baidu了。
调整hash对象的顺序应该能解决。
win10 浏览器打开, 识别为 win7 系统
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.