-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.js
43 lines (39 loc) · 1.22 KB
/
main.js
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
document.onkeydown = function (e) {
if (e.key === "Enter") {
splashText();
}
};
var says = [];
fetch('https://raw.githubusercontent.com/Nintendoboi222/games/refs/heads/main/says.txt')
.then(response => response.text())
.then(text => {
says = text.split('\n').filter(line => line.trim() !== '');
splashText();
});
function splashText() {
if (says.length > 0) {
document.querySelector(".Index-SplashText").innerHTML =
says[Math.floor(Math.random() * says.length)];
}
}
document.addEventListener("DOMContentLoaded", (event) => {
splashText();
fetch("https://ipv4.wtfismyip.com/json")
.then((response) => response.json())
.then((data) => {
proxylocation = data.YourFuckingLocation;
ipAddress = data.YourFuckingIPAddress;
isp = data.YourFuckingISP;
says.push(`Sending missile to ${proxylocation}😈`);
says.push(`umm your ip is ${ipAddress}`);
says.push(`nice isp, "${isp}"`);
splashText();
});
fetch("https://discord.com/api/guilds/1288933489818865784/widget.json")
.then((response) => response.json())
.then((data) => {
invite = data.instant_invite;
says.push(`Join? "${invite}"`);
splashText();
});
});