-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscript.js
57 lines (53 loc) · 1.93 KB
/
script.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// internet cave
if (
window.location.hash ==
// this string is "the internet cave" in full width unicode characters
"#%EF%BD%94%EF%BD%88%EF%BD%85%EF%BD%89%EF%BD%8E%EF%BD%94%EF%BD%85%EF%BD%92%EF%BD%8E%EF%BD%85%EF%BD%94%EF%BD%83%EF%BD%81%EF%BD%96%EF%BD%85"
) {
const urls = [
"https://puzzle.suchfun.net/",
"https://xanadu.com",
"https://somethingawful.com/hosted/jeffk",
"http://mspaintadventures.com/sweetbroandhellajeff/",
"http://textfiles.com/",
"http://catb.org/jargon/html",
"https://johnclilly.com/hub.html",
"https://sbnation.com/a/17776-football",
"https://horg.com/",
"https://truegamer.net/SA_911/911%20SATHREAD",
"https://theghostinthemp3.com/theghostinthemp3.html",
"https://cameronsworld.net",
"https://garrettmdavis.com",
"http://data.pcmusic.info",
"https://billwurtz.com",
"https://timecube.2enp.com",
"https://gifcities.org",
"https://if-jesus-returns-kill-him-again.com",
"http://subgenius.com",
"http://phrack.org",
"https://laglab.org",
"http://art.teleportacia.org",
"https://blog.geocities.institute",
"https://shedd.ml",
];
const i = Math.floor(Math.random() * urls.length);
location.href = urls[i];
// emoji code for extra bullet points
} else if (window.location.hash.startsWith("#%F0")) {
const emojis = decodeURI(window.location.hash.substring(1));
const separator = emojis.indexOf("🧐");
let primaryText = "";
for (let i = 0; i < separator; i += 2) {
primaryText += String.fromCodePoint(emojis.codePointAt(i) - 128480);
}
let secondaryText = "";
for (let i = separator + 2; i < emojis.length; i += 2) {
secondaryText += String.fromCodePoint(emojis.codePointAt(i) - 128480);
}
const newItem = document.createElement("li");
newItem.innerHTML = `<a href="">${primaryText}<span class="mouseover-only">: ${secondaryText}</span></a>`;
document.addEventListener("DOMContentLoaded", () => {
const list = document.getElementById("links");
list.appendChild(newItem);
});
}