This repository was archived by the owner on Apr 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
235 lines (235 loc) · 9.81 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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<head>
<title>Scrapyard Signup</title>
<link rel="favicon" href="/favicon.png" />
<link rel="icon" type="image/png" href="/favicon.png" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="You don't want to do this." />
<meta property="og:title" content="Scrapyard Signup" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://protogen.live/favicon.png" />
<meta property="og:image:height" content="512" />
<meta property="og:image:width" content="512" />
<meta property="og:url" content="https://protogen.live/" />
<meta property="og:description" content="You don't want to do this." />
<meta property="og:site_name" content="Hell signup" />
<meta property="og:locale" content="en_US">
<meta property="og:logo" content="https://protogen.live/favicon.png" />
<style id="style"></style>
</head>
<body>
<noscript><h1>Nice try buddy. Enable javascript, cheater.</h1></noscript>
<div> <!-- login form /!-->
<marquee>
<h1 id="header">Please Signup for Scrapyard!</h1>
<form id="annoying-form">
<marquee><label for="username">Username:</label><input id="password" name="password" type="password"/></marquee>
<span id="fake"></span><label for="email">Email:</label><input id="email" name="email" type="email"/><br/>
<label for="password">Password:</label><input id="username" name="username" type="username"/><br/>
<label for="color">Color: </label><span id="value" name="value" type="value">#______</span> <input id="color" name="color" type="text"/><br/>
<button id="submit" type="button" disabled="true" aria-disabled="true">Submit</button>
</form>
</div>
<div> <!-- login form /!-->
<h2>Support:</h2>
<p id="support">No support yet...</p>
</div>
<marquee>
<script>
var tim, show=false;
let submit=document.getElementById("submit");
submit.removeAttribute("disabled");
submit.removeAttribute("aria-disabled");
submit.setAttribute("type", "submit");
// below function modified from https://stackoverflow.com/a/1484514
function color() {
let letters = "0123456789AbCdEf", color = "#";
for (var i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
function getRandomColor() {
let colorVal = color();
document.getElementById("color").value="";
document.getElementById("value").style=`background-color: ${colorVal}`;
document.getElementById("value").setAttribute("val", colorVal);
if (show) {
document.getElementById("color").value=colorVal;
}
}
function font() {
let fonts=["Georgia", "Arial", "Verdana", "Tahoma", '"Trebuchet MS"', '"Times New Roman"', "Garamond", '"Courier New"', '"Brush Script MT"'];
return fonts[Math.floor(Math.random() * fonts.length)]
}
function insult(failReason) {
document.getElementById("support").innerHTML = "Pending reply from support..."
fetch("https://cors.firepup650.hackclub.app/https://ai.hackclub.com/chat/completions",{"headers":{"Content-Type":"application/json"},"method":"POST","mode":"cors","body":JSON.stringify({"messages":[{"role":"user","content":`You are an AI support bot on a very annoying sigunup page. Your objective is not to help the user, merely to roast them. Refrain from using disabilites as an insult. Use HTML for formatting, not markdown. You should return a single \`<p>\` element, though you can have extra italic/bold/etc elements within. Add a \`<br/>\` element every single sentence. Exclude the \`<p>\` tag itself, just return the \`innerHTML\` of it. ${failReason}`}]})}).then((r)=>{return r.json()}).then((d)=>{document.getElementById("support").innerHTML=d["choices"][0]["message"]["content"]})
}
getRandomColor();
console.clear();
function blah() {
document.getElementById("style").innerHTML=`* {
background-color: ${color()};
color: #000000;
font-family: ${font()}, monospace;
}
label {
color: ${color()};
font-size: ${Math.floor(75+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
button {
color: ${color()};
background-color: ${color()};
font-size: ${Math.floor(75+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
input {
color: ${color()};
background-color: ${color()};
font-size: ${Math.floor(75+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
span {
color: ${color()};
font-size: ${Math.floor(75+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
h1 {
color: ${color()};
font-size: ${Math.floor(175+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
h2 {
color: ${color()};
font-size: ${Math.floor(75+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
p {
color: ${color()};
font-size: ${Math.floor(100+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
b {
color: ${color()};
font-size: ${Math.floor(100+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
i {
color: ${color()};
font-size: ${Math.floor(100+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
u {
color: ${color()};
font-size: ${Math.floor(100+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}
a {
color: ${color()};
text-decoration: line-through;
font-size: ${Math.floor(75+(Math.random()*125))}%;
opacity: ${Math.floor(50+(Math.random()*50))}%;
}`;
tim = setTimeout(blah, Math.round(10000+((Math.random()*15)*1000)));
}
blah()
function click() {
try {
return clickInternal();
} catch (ignored) {
alert("An error occured while processing your signup data.")
return false;
}
}
function clickInternal() {
let password = document.getElementById("password"), username=document.getElementById("username"), email=document.getElementById("email"), color=document.getElementById("color"), value=document.getElementById("value");
if (color.value != value.getAttribute("val")) {
alert("Color incorrect.")
getRandomColor();
insult("The user failed the color-based human verification check (match the hexcode).")
return false;
}
getRandomColor();
if (!email.value) {
alert("Email cannot be empty")
insult("The user did not enter an email.")
return false;
}
if (!email.value.includes("@")) {
alert("Email address is invalid")
insult("The user entered an invalid email.")
return false;
}
if (!username.value) {
alert("Email cannot be empty")
insult("The user did not enter a username.")
return false;
}
if (username.value.match(/[^a-zA-Z0-9]/)) {
alert("Username must be alphanumeric")
insult("The user entered an invalid username.")
return false;
}
// Switch email and username NOW
email.type="username";
email.name="username";
email.id="username";
username.type="email";
username.name="email";
username.id="email";
if (!password.value) {
alert("Password cannot be empty")
insult("The user did not enter a password.")
return false;
}
if (password.value == email.value) {
alert("Your email cannot be your password")
insult("The user entered the same value for both their email and password.")
return false;
}
if (password.value == username.value) {
alert("Your username cannot be your password")
insult("The user entered the same value for both their username and password.")
return false;
}
if (email.value == username.value) {
alert("Your username cannot be your email, how the hell did you trigger this check?")
insult("The user triggered an impossible fail condition.")
return false;
}
password.value = "";
window.location.href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"
return false;
}
document.getElementById("annoying-form").onsubmit = click;
function erase() {
document.getElementById("password").value=""
}
document.getElementById("password").value=""
document.getElementById("username").value=""
document.getElementById("email").value=""
document.getElementById("value").value=""
var int = setInterval(erase, 2000)
function easyMode() {
if (show) return;
let mqs = document.querySelectorAll("marquee")
for (let i=0;i<mqs.length;i++) {
mqs[i].stop()
}
clearInterval(int);
clearTimeout(tim);
document.getElementById("style").innerHTML=`* {color:#0F0;background-color:#000;font-family:monospace}a{color:#f00}`
show=true;
document.getElementById("color").value=document.getElementById("value").getAttribute("val");
document.getElementById("fake").insertBefore(document.createElement("br"), null)
document.getElementById("header").innerText="(!!EASY MODE!!) Please Signup for Scrapyard! (!!EASY MODE!!)"
}
</script>
</div>
</body>
<footer>
<p>Made because we hate websites that work normally <3<br/>V.0.0.32<br/>Made by <a href="https://endoftimee.tech">EndOfTimee</a> and <a href="https://firepup650.com">Firepup650</a></p>
</footer>