-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
323 lines (285 loc) · 7.83 KB
/
index.html
File metadata and controls
323 lines (285 loc) · 7.83 KB
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<!DOCTYPE html>
<html>
<head>
<title>Infinite Typing</title>
<link rel="icon" type="image/png" href="uwu.png" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto&display=swap"
rel="stylesheet"
/>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1"
/>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Roboto, sans-serif;
background-color: #36393f;
color: #dcddde;
margin: 0;
padding: 0;
}
#top {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px 120px;
text-align: center;
}
h1 {
font-size: 2rem;
margin-bottom: 10px;
}
#gay {
color: #fee75c !important;
font-weight: bold;
font-size: 14px;
display: flex;
align-items: center;
gap: 6px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 10px;
}
.gay2 {
font-size: 14px;
max-width: 600px;
margin: 5px auto;
padding: 0 10px;
}
#middle {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
gap: 12px;
margin-top: 20px;
}
#token {
padding: 14px;
border-radius: 10px;
font-size: 16px;
width: 90%;
max-width: 420px;
border: none;
outline: none;
}
#cutebutton,
#startButton,
#stopButton {
width: 90%;
max-width: 420px;
padding: 16px;
font-size: 16px;
border-radius: 8px;
font-family: Roboto;
border: none;
cursor: pointer;
transition: transform 0.2s ease;
}
#cutebutton {
background-color: #5865f2;
color: #dcddde;
}
#startButton {
background-color: #3ba55d;
color: #dcddde;
display: none;
}
#stopButton {
background-color: #ed4245;
color: #dcddde;
display: none;
}
#cutebutton:hover,
#startButton:hover,
#stopButton:hover {
transform: scale(1.04);
}
#status {
margin: 20px auto 0;
padding: 12px 16px;
background-color: #2f3136;
border: 1px solid #4f545c;
border-radius: 8px;
font-size: 16px;
text-align: center;
max-width: 90%;
white-space: pre-line;
}
#foot {
background-color: #2f3136;
color: #b9bbbe;
text-align: center;
padding: 16px;
font-size: 14px;
border-top: 1px solid #4f545c;
position: fixed;
bottom: 0;
left: 0;
right: 0;
font-family: Roboto, sans-serif;
z-index: 999;
}
@media (max-width: 768px) {
#middle {
flex-direction: column;
}
h1 {
font-size: 24px;
}
.gay2 {
font-size: 14px;
}
#gay {
font-size: 14px;
flex-direction: column;
}
#foot {
font-size: 13px;
}
}
@media (min-width: 769px) {
#middle {
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
}
#token {
width: 400px;
font-size: 18px;
}
#cutebutton,
#startButton,
#stopButton {
width: auto;
min-width: 130px;
font-size: 16px;
padding: 14px 20px;
}
#status {
font-size: 18px;
max-width: 60%;
}
h1 {
font-size: 32px;
}
.gay2 {
font-size: 16px;
}
#gay {
font-size: 16px;
flex-direction: row;
}
}
</style>
</head>
<body>
<!--FYI this code is ASS im a newbie-->
<div id="top">
<h1>Infinite Typing.</h1>
<div id="gay">
<i class="fas fa-exclamation-triangle"></i> This can get you banned
<i class="fas fa-exclamation-triangle"></i>
</div>
<h4 class="gay2">
This website will NOT store your token, or use it in any way other than
the intended use.
</h4>
<h4 class="gay2">
This is a static website. If you don't believe me, check out the source
yourself.
</h4>
<div id="middle">
<input id="token" type="password" placeholder="Enter your token..." />
<button id="cutebutton">Enter</button>
<button id="startButton">Start</button>
<button id="stopButton">Stop</button>
</div>
</div>
<p id="status"></p>
<footer id="foot">Made by sexyplankton</footer>
<script>
const input = document.querySelector("#token");
const button = document.querySelector("#cutebutton");
const status = document.querySelector("#status");
const startBtn = document.querySelector("#startButton");
const stopBtn = document.querySelector("#stopButton");
let step = 1;
let Token = "";
let channelId = "";
let intervalId = null;
function handleSubmit() {
const value = input.value.trim();
if (step === 1) {
if (value === "") {
status.textContent = "Enter a token";
return;
}
Token = value;
status.textContent = `Token is ready`;
input.value = "";
input.placeholder = "Enter Channel ID";
step = 2;
} else if (step === 2) {
if (value === "") {
status.textContent = "Please enter a channel ID.";
return;
}
channelId = value;
status.textContent = `Channel ID saved: ${channelId}. Ready to start.`;
input.disabled = true;
button.disabled = true;
startBtn.style.display = "block";
stopBtn.style.display = "block";
}
}
function startTyping() {
if (intervalId !== null) return;
intervalId = setInterval(function () {
fetch(`https://discord.com/api/v9/channels/${channelId}/typing`, {
method: "POST",
headers: {
Authorization: `${Token}`,
"Content-Type": "application/json",
},
})
.then((response) => {
if (!response.ok) {
throw new Error(
`Server responded with status ${response.status}`
);
}
})
.catch((error) => {
status.textContent =
"❌ couldnt send the request either wrong token or channel id orrr ur adblocker is blocking the post.";
console.error("POST error:", error);
});
}, 8000);
status.textContent = "🟢 Started.";
}
function stopTyping() {
clearInterval(intervalId);
intervalId = null;
status.textContent = "🛑 Stopped.";
}
input.addEventListener("keydown", (e) => {
if (e.key === "Enter") handleSubmit();
});
button.addEventListener("click", handleSubmit);
startBtn.addEventListener("click", startTyping);
stopBtn.addEventListener("click", stopTyping);
</script>
</body>
</html>