-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
209 lines (200 loc) · 8.5 KB
/
404.html
File metadata and controls
209 lines (200 loc) · 8.5 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
<!doctype html>
<html>
<head>
<title>404</title>
<script>
// Before rendering 404 page, try to redirect if this is a shortlink
const path = window.location.href;
const shortlinks0 = {
x: "https://robertl.in/server/xna/x.json",
e61_1: "https://robertlin.substack.com/p/61-1-openai-claims-ai-psychosis-is-a-feature",
e61_2: "https://robertlin.substack.com/p/61-2-economists-who-destroyed-millions",
e61_3: "https://robertlin.substack.com/p/61-3-state-that-spent-15-billion-over",
e61_4: "https://robertlin.substack.com/p/61-4-bezos-my-master-plan-to-save"
}
const regex0 = /robertl\.in\/(\S*)/;
const match0 = path.match(regex0);
const id0 = match0[1]; // Extract the matched id
if (match0) {
if (shortlinks0.hasOwnProperty(id0)) {
const url = shortlinks0[id0];
console.log("Route to:", url);
window.location.href = url;
exit();
}
}
const shortlinks = {
e0: "https://robertlin.substack.com/",
b0: "https://bsky.app/profile/did:plc:5wlpm2j3d6can6quf5hotdcc",
// e1: "1-december-january-is-always-when-i-reflect",
b1: "3lfcy3lmrhk2j",
// e2: "2-hyper-personalization",
b2: "3lff67v7z3s2y",
// e3: "3-small-businesses-are-the-backbone-of-america",
b3: "3lfhqcp645k2r",
// e4: "4-armageddon-is-my-favorite-movie",
b4: "3lfwqlw44ak2o",
// e5: "5-will-the-real-zuck-please-stand-up",
b5: "3lfwvimifqc25",
// e6: "6-greenlights-towards-bluer-skies",
b6: "3lfysq62rkc2m",
// e7: "7-the-unbearable-lightness-of-playing-life-on-super-easy-mode",
b7: "3lg6q24rfbk2f",
// e8: "8-martha-becks-the-path-of-not-here",
b8: "3lgfgcjxwxk2c",
// e9: "9-a-tale-of-two-companies",
b9: "3lggxpsxxrc2l",
// e10: "10-the-importance-of-rituals",
b10: "3lgnogv5e7c2t",
// e11: "11-from-great-to-good-enough",
b11: "3lgwgofgqzk2x",
// e12: "12-internal-family-systems-therapy",
b12: "3lh3gta3doc2t",
// e13: "13-the-importance-of-child-labor-pedaling-popcorn-as-a-boy-scout",
b13: "3lhbufrtlks2c",
// e14: "14-my-childhood-dream",
b14: "3lhgnlxfibk24",
// e15: "15-hero-ball",
b15: "3lhiclzyqns2o",
// e16: "16-brilliance-can-be-a-curse",
b16: "3lhwntcjyks2s",
// e17: "17-things-that-make-me-happy",
b17: "3li45zmjgmk2f",
// e18: "18-sometimes-disruption-is-the-only-way-forward",
b18: "3liav7ghbpk23",
// e19: "19-two-ways-to-start-the-day",
b19: "3licnb3tbt22j",
// e20: "20-start-the-day-right-go-when-the-spirit-takes-you",
b20: "3lip447qaak2b",
// e21: "21-it-costs-what-it-costs",
b21: "3liruqdvqkk2p",
// e22: "22-noblesse-oblige-why-bread-circuses-are-important",
b22: "3lixmk2kakc22",
// e23: "23-the-90-9-1-rule",
b23: "3ljanvplrfc2u",
// e24: "24-one-day-my-tweets-are-all-ill-leave-behind",
b24: "3ljdaclqoqc2n",
// e25: "25-kingdom-the-voice-of-god",
b25: "3ljgv6i3e622j",
// e26: "26-where-it-all-went-wrong-the-way-back",
b26: "3ljkqy6ug3s2f",
// e27: "27-the-future-of-ai-video-entertainment",
b27: "3ljop3j2aqc2n",
// e28: "28-robert-v2-my-legacy-project",
b28: "3ljzs6qlois26",
// e29: "29-my-girlfriends-have-unionised-intermezzo",
b29: "3lkd2sz4zzc2r",
// e30: "30-what-core-values-constitute-a-good-life",
b30: "3lkhlav2kjk2l",
// e31: "31-celebrating-commutes",
b31: "3lkk34gwjik2p",
// e32: "32-rejecting-dark-forests",
b32: "3lkoufk46hk27",
// e33: "33-breaking-laws-in-the-name-of-innovation",
b33: "3lkyzuccfys2t",
// e34: "34-how-do-billionaires-support-art-they-love",
b34: "3lla4geas3s2k",
// e35: "35-playing-god-who-gets-to-be-an-artist",
b35: "3llx5fqf3zc2k",
// e36: "36-what-is-talent",
b36: "3lm2xekqass2y",
// e37: "37-what-is-community-in-a-company",
b37: "3lmz3w25zvs2t",
// e38: "38-art-history-majors-get-the-last-laugh",
b38: "3lo5nw2emrc2u",
// e39: "39-the-eye-of-sauron",
b39: "3lp3em7fd2c2y",
e40: "40-an-antidote-for-human-loneliness",
b40: "3lpl6jqlhv22j",
e41: "41-more-idea-than-movie",
e42: "42-challenges-of-a-post-work-world",
e43: "43-saying-no-to-intentionality",
e44: "44-why-im-on-substack",
e45: "45-against-advice",
e46: "46-outsourcing-all-sustenance-to-ai",
e47: "47-choosing-a-company-over-going-solo",
e48: "48-ai-experiment-auto-titling-posse-posts",
e49: "49-f1-the-male-fantasy",
e50: "50-being-childless-is-a-kind-of-hard-mode",
e51: "51-thoughts-on-ai-friends",
e52: "52-excerpts",
e53: "53-antimemetics-part-i-substack-live",
e54: "54-antimemetics-part-ii-substack-live",
e55: "55-inaugural-monthly-dispatch-from-robertland",
e56: "56-my-core-values",
e57: "57-bank-of-robertland-2026-ledger",
e58: "58-appreciating-parasocial-relationships",
e59: "59-fiction-project",
e60: "60-everyone-needs-a-moby-dick",
e61: "61-new-experiment-trenchant-satire-series",
e62: "62-the-russell-news-conjugator"
};
// Configure the shortlinks for RL 2025 Christmas Letter
const regex25 = /robertl\.in\/(\S+)/;
const match25 = path.match(regex25);
if (match25) {
const id25 = match25[1]; // Extract the matched id
const shortlinks25 = {
"25a": "https://www.aboutamazon.com/about-us/shareholder-letters",
"amazon-letters": "https://www.aboutamazon.com/about-us/shareholder-letters",
"25b": "https://robertlin.substack.com/i/180097867/fairness-following-rules",
"fairness": "https://robertlin.substack.com/i/180097867/fairness-following-rules",
"25c": "https://bsky.app/profile/did:plc:5wlpm2j3d6can6quf5hotdcc/post/3lxqimjxacc2g",
"forty": "https://bsky.app/profile/did:plc:5wlpm2j3d6can6quf5hotdcc/post/3lxqimjxacc2g",
"25d": "https://r002.notion.site/AI-s-Effect-on-Adtech-Martech-and-Where-We-re-Headed-b1f8f6be06bc4daf8b7de3f35b6d414f",
"adtech-future": "https://r002.notion.site/AI-s-Effect-on-Adtech-Martech-and-Where-We-re-Headed-b1f8f6be06bc4daf8b7de3f35b6d414f",
"25e": "https://robertlin.substack.com/p/46-outsourcing-all-sustenance-to-ai",
"25f": "https://en.wikipedia.org/wiki/Camino_de_Santiago",
"25g": "https://jamesvsrobert.com/",
"25h": "https://robertl.in/maze/?s=p3",
"x-love-letter": "https://robertl.in/maze/?s=p3",
"25i": "https://substack.com/@robertlin/note/c-189703593",
"ethnostate": "https://substack.com/@robertlin/note/c-189703593",
"25j": "https://substack.com/@itswilliamwillorbilly/note/c-172786389",
"dimon": "https://substack.com/@itswilliamwillorbilly/note/c-172786389",
"25k": "https://x.com/robert_gpt",
"x-profile": "https://x.com/robert_gpt",
"25l": "https://bsky.app/profile/robertl.in",
"bsky-profile": "https://bsky.app/profile/robertl.in",
"25m": "https://robertlin.substack.com/",
"substack": "https://robertlin.substack.com/",
"25n": "https://robertlin.substack.com/s/monthly-dispatches",
"dispatches": "https://robertlin.substack.com/s/monthly-dispatches",
"25o": "https://robertlin.substack.com/p/52-excerpts"
};
if (shortlinks25.hasOwnProperty(id25)) {
const url = shortlinks25[id25];
console.log("Route to:", url);
window.location.href = url;
}
}
const regex = /robertl\.in\/(b?e?)(\d+)/;
const match = path.match(regex);
if (match) {
const id = `${match[1]}${match[2]}`; // Extract the matched id
// Redirect if the id is for a valid shortlink
if (shortlinks.hasOwnProperty(id)) {
// If the redirect is a url, just route to it
let url = shortlinks[id];
// Else, build the url to route to
if (!url.includes("://")) {
url = match[1]==="b" ? "https://bsky.app/profile/did:plc:5wlpm2j3d6can6quf5hotdcc/post/" : "https://robertlin.substack.com/p/";
url += shortlinks[id];
}
console.log("Route to:", url);
window.location.href = url;
}
}
// If no match, log a message
console.log("The path does not contain a recognized shortlink id.");
</script>
</head>
<body>
<div>
<h1>404</h1>
<div id="placeholder">
<p>Sorry, the page you were looking for could not be found.</p>
</div>
</div>
</body>
</html>