Html
    Css
    Js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
function get_navigator_name() {
const agent = navigator.userAgent;
//QQBrowser
if (agent.indexOf("QQBrowser") !== -1) {
return "QQBrowser";
}
//Midori
if (agent.indexOf("Midori") !== -1) {
return "Midori"
}
//Basilisk
if (agent.indexOf("Basilisk") !== -1) {
return "Basilisk";
}
//Iridium
if (agent.indexOf("Iridium") !== -1) {
return "Iridium";
}
//Vivaldi
if (agent.indexOf("Vivaldi") !== -1) {
return "Vivaldi"
}
//Waterfox
if (agent.indexOf("Waterfox") !== -1) {
return "Waterfox"
}
//IceDragon
if (agent.indexOf("IceDragon") !== -1) {
return "IceDragon"
}
//Slim
if (agent.indexOf("Slim") !== -1) {
return "Slim"
}
//SeaMonkey
if (agent.indexOf("SeaMonkey") !== -1) {
return "SeaMonkey"
}
//RockMelt
if (agent.indexOf("RockMelt") !== -1) {
return "RockMelt"
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

AgentSweep(原创)

更新时间:2020-06-10 00:35:26

使用方法:

document.write(get_navigator_name()); //浏览器名字        
document.write("<br />");        
document.write(get_app_version()); //版本 
document.write(get_browser_plugins()); //浏览器插件大全
0