-
Notifications
You must be signed in to change notification settings - Fork 527
/
Index.html
218 lines (200 loc) · 5.21 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
overflow: hidden;
font-family: Arial, sans-serif;
}
#background {
position: absolute;
width: 100vw;
height: 100vh;
overflow: hidden;
background: radial-gradient(circle, rgb(0, 0, 0), rgb(1, 44, 42));
}
.star {
position: absolute;
background: rgb(57, 255, 215);
border-radius: 50%;
transform: scale(0);
animation: sparkle 2s infinite, drift linear infinite;
}
@keyframes sparkle {
0%, 100% {
opacity: 0;
transform: scale(0);
}
50% {
opacity: 1;
transform: scale(1);
}
}
@keyframes drift {
0%, 100% {
transform: translate(0, 0);
}
50% {
transform: translate(50px, -50px);
}
}
</style>
</head>
<div id="background">
<!-- Generating stars -->
<script>
const numStars = 300;
const background = document.getElementById('background');
for (let i = 0; i < numStars; i++) {
const star = document.createElement('div');
star.classList.add('star');
star.style.width = `${Math.random() * 3}px`;
star.style.height = star.style.width;
star.style.left = `${Math.random() * 100}vw`;
star.style.top = `${Math.random() * 100}vh`;
background.appendChild(star);
}
</script>
</div>
</body>
<style>
body {
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
input {
margin-bottom: 10px;
}
</style>
<style>
.image-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.image {
width: 250px;
height: 250px;
border: 2px solid #daf3f1;
margin: 40px;
padding: 10px;
box-sizing: border-box;
transition: all 0.3s ease;
}
.image:hover {
transform: scale(1.1);
border-color: #9900ff;
}
</style>
</head>
<script>
javascript:(function() {
var menu = document.createElement('div');
var menuContent = document.createElement('div');
var closeButton = document.createElement('span');
var button = document.createElement('button');
menu.style.cssText = `
position: fixed;
top: 20px;
right: 20px;
z-index: 9999;
background-color: rgba(0, 255, 255, 0.2);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
border-radius: 5px;
width: 200px;
`;
menuContent.style.padding = '10px';
closeButton.style.cssText = `
float: right;
cursor: pointer;
color: #333;
`;
closeButton.innerHTML = '×';
closeButton.onclick = function() {
menu.remove();
};
button.innerHTML = 'Launch ByeBlocker';
button.style.cssText = `
font-family: Arial;
font-size: 16px;
color: #fff;
background-color: #333;
padding: 10px 20px;
border: none;
border-radius: 5px;
margin-top: 10px;
cursor: pointer;
`;
button.onclick = function() {
var link = prompt("Url?");
var proxy = 'https://api.codetabs.com/v1/proxy?quest=';
fetch(proxy + link)
.then((response) => response.text())
.then((text) => document.write(text));
var all = document.getElementsByTagName("*");
for (var i = 0, max = all.length; i < max; i++) {
if (all[i].src) {
all[i].src = new URL(all[i].src, link).href;
all[i].src = proxy + all[i].src;
}
}
window.onbeforeunload = function(e) {
e.preventDefault();
alert(e.toString());
};
function locationHashChanged(e) {
e.preventDefault();
alert(e);
window.location = new URL(e.oldURL, e.newURL).href;
}
window.onhashchange = locationHashChanged;
};
menuContent.appendChild(button);
menuContent.appendChild(closeButton);
menu.appendChild(menuContent);
document.body.appendChild(menu);
var isDragging = false;
var mouseOffset = { x: 0, y: 0 };
menuContent.addEventListener('mousedown', function(e) {
isDragging = true;
mouseOffset.x = e.pageX - menu.offsetLeft;
mouseOffset.y = e.pageY - menu.offsetTop;
});
document.addEventListener('mousemove', function(e) {
if (isDragging) {
menu.style.left = (e.pageX - mouseOffset.x) + 'px';
menu.style.top = (e.pageY - mouseOffset.y) + 'px';
}
});
document.addEventListener('mouseup', function() {
isDragging = false;
});
})();
</script>
<head>
<style>
body {
margin: 0;
padding: 0;
background-color: #000;
}
.bottom-left {
position: fixed;
bottom: 0;
left: 0;
font-family: Arial, sans-serif;
font-size: 16px;
color: rgba(255, 255, 255, 0.2);
padding: 10px;
}
</style>
</head>
<body>
<div class="bottom-left">
Tacogamerman on github
</div>
</body>