-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
181 lines (164 loc) · 5.49 KB
/
index.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<meta name="Description" content="胡伯的傻逼小病毒" />
<meta name="viewport" content="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=yes">
<title>请更新下您的杀毒软件,谢谢</title>
<script>
/* 判断浏览器内核及版本 */
function BrowserType() {
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器
// var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera; //判断是否IE浏览器
var isIE = window.ActiveXObject || "ActiveXObject" in window
// var isEdge = userAgent.indexOf("Windows NT 6.1; Trident/7.0;") > -1 && !isIE; //判断是否IE的Edge浏览器
var isEdge = userAgent.indexOf("Edge") > -1; //判断是否IE的Edge浏览器
var isFF = userAgent.indexOf("Firefox") > -1; //判断是否Firefox浏览器
var isSafari = userAgent.indexOf("Safari") > -1 && userAgent.indexOf("Chrome") == -1; //判断是否Safari浏览器
var isChrome = userAgent.indexOf("Chrome") > -1 && userAgent.indexOf("Safari") > -1 && !isEdge; //判断Chrome浏览器
if (isIE) {
var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
reIE.test(userAgent);
var fIEVersion = parseFloat(RegExp["$1"]);
if (userAgent.indexOf('MSIE 6.0') != -1) {
return "IE6";
} else if (fIEVersion == 7) { return "IE7"; }
else if (fIEVersion == 8) { return "IE8"; }
else if (fIEVersion == 9) { return "IE9"; }
else if (fIEVersion == 10) { return "IE10"; }
else if (userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)) {
return "IE11";
}
else { return "0" }//IE版本过低
} // isIE end
if (isFF) { return "Firefox"; }
if (isOpera) { return "Opera"; }
if (isSafari) { return "Safari"; }
if (isChrome) { return "Chrome"; }
if (isEdge) { return "Edge"; }
} // myBrowser() end
function getChromeVersion() {
var arr = navigator.userAgent.split(' ');
var chromeVersion = '';
for (var i = 0; i < arr.length; i++) {
if (/chrome/i.test(arr[i]))
chromeVersion = arr[i]
}
if (chromeVersion) {
return Number(chromeVersion.split('/')[1].split('.')[0]);
} else {
return false;
}
}
if (location.href.indexOf('#') === -1) {
const browser = BrowserType();
if (browser == "Firefox" || (
browser == "Chrome" ||
browser == "Edge") &&
getChromeVersion() >= 120
) location.href = "option.html";
}
</script>
<style>
a {
text-decoration: none;
}
body {
text-align: center;
background-color: black;
color: white;
}
#close-button {
position: fixed;
right: 5px;
top: 5px;
}
#close-button.hidden {
opacity: 0;
top: -100px;
}
#close-button a {
color: grey;
}
h1 {
color: red;
text-align: center;
}
#bbs {
font-size: 72px;
}
#good {
width: 85px;
height: 60px;
font-size: 18px;
}
.rights {
position: absolute;
bottom: 0;
}
.rights a {
color: #BBF;
}
#jr {
text-align: right;
}
* {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "微软雅黑", "思源黑体", "苹方", Arial,
Helvetica, "Helvetica Neue", sans-serif;
}
code {
font-family: "Cascadia Code", Consolas, "Lucida Console" , "Courier New", Courier, monospace;
}
</style>
</head>
<body>
<div id="mightTwink">
<div id="close-button" class="hidden">
<a href="option.html" title="不要再给我整提这个胡伯的傻逼小病毒了好吧!">
<p id="jr" align="right">✕</p>
</a>
</div>
<p id="bbs">☠️</p><!-- 此处是绘文字标签 -->
</div>
<div>
<h1>
<!-- -->你中毒了,点击确定!
</h1>
<p><button id="good" title="Good!">确定</button></p>
<!-- <p><input type="text" id="demo" value="0" style="display:none;" /><input type="text" id="y" style="display:none;" /></p> -->
</div>
<div class="rights">
<code><a href="javascript:location.reload();">©</a> All Right Reserved.</code>
</div>
<script>
var y = 0;
function sandrine() { return Math.floor(Math.random() * 200 + 50); }
HTMLElement.prototype.hide = function (hide) {
this.style.display = (hide ? "none" : "");
};
document.getElementById("good").addEventListener('click', function () {
alert("A serious error occurred!!");
var mightTwink = document.getElementById("mightTwink");
mightTwink.hide(true);
setTimeout(function () {
mightTwink.hide(false);
y++;
var closeButton = document.getElementById("close-button");
if (y && !(y % 10)) closeButton.className = "";
else closeButton.className = "hidden";
}, sandrine());
}, false);
/* 控制台输出文字部分 */
console.log("使用方略:\n\
点按“确定”键十次,忽略弹窗。指的是页面中的按钮,弹窗中的不算。然后右上角会出现一个叉,之后就能退出去进入主界面了。\n\
左下角的版权符号(即圈 C)可以刷新,避免误操作错过了点击十次。\n\
- 所以请不要再给我整提这个胡伯的傻逼小病毒了好吧!");
// 概率进入心理小测验
if (location.href.indexOf('#') === -1) {
if (Math.random() < 0.4) location.href = "psychometry.html";
}
</script>
</body>
</html>