blob: cb05ea6f0cfb5bb481fb5dd592c6189f8c9a9ec0 (
plain)
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
|
f13presses = 0;
document.onkeydown = (event) => {
if (event.keyCode === 124) {
if (require('os').platform() === "win32") {
alert("haha you're using an inferior OS! Doing F13 on here is too easy so you might have expected " +
"something but you're not going to get it.")
} else {
f13presses++;
switch (f13presses) {
case 1:
Array.from(document.querySelectorAll("*")).forEach((item) => {
item.style.fontFamily = "'Noto Sans Symbols', 'Wingdings', 'Webdings', monospace";
});
break;
case 2:
Array.from(document.querySelectorAll("*")).forEach((item) => {
item.style.background = "red";
});
break;
case 3:
Array.from(document.querySelectorAll("*")).forEach((item) => {
item.style.color = "blue";
});
break;
case 4:
Array.from(document.querySelectorAll("img")).forEach((item) => {
item.src = "";
item.style.color = "yellow";
});
break;
case 5:
Array.from(document.querySelectorAll("*")).forEach((item) => {
item.style.transition = "transform 200ms";
item.style.animationName = "shake";
item.style.animationDuration = "200ms";
item.style.animationIterationCount = "infinite";
item.style.animationDirection = "alternate-reverse";
});
break;
case 6:
Array.from(document.querySelectorAll("*")).forEach((item) => {
item.style.display = "none";
});
break;
default:
Array.from(document.querySelectorAll("*")).forEach((item) => {
window.close();
});
break;
}
}
}
}
|