-
-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy path404.html
More file actions
46 lines (46 loc) · 1.22 KB
/
Copy path404.html
File metadata and controls
46 lines (46 loc) · 1.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Not Found - Social Stream Ninja</title>
<script>
(function () {
const match = window.location.pathname.match(/^\/resources\/social_stream_fallback\/(main|beta)\/(.+\.html)$/i);
if (!match) return;
const branch = match[1].toLowerCase();
const relativePath = match[2].replace(/^\/+/, "");
if (!relativePath || relativePath.includes("..") || !/^[a-z0-9._/-]+\.html$/i.test(relativePath)) return;
const branchPrefix = branch === "beta" ? "/beta/" : "/";
window.location.replace(branchPrefix + relativePath + window.location.search + window.location.hash);
})();
</script>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #0f172a;
color: #f8fafc;
}
main {
max-width: 520px;
padding: 32px;
text-align: center;
}
a {
color: #93c5fd;
}
</style>
</head>
<body>
<main>
<h1>Page Not Found</h1>
<p>The page or asset you requested is not available.</p>
<p><a href="/">Return to Social Stream Ninja</a></p>
</main>
</body>
</html>