-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
25 lines (25 loc) · 795 Bytes
/
index.html
File metadata and controls
25 lines (25 loc) · 795 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<script>
try {
const link = decodeURIComponent(location.search.substring(6)); // Remove '?link='
if (link) {
new URL(link);
location.replace(link);
}
} catch (e) {
document.body.innerHTML = '<h1>Invalid URL provided. Please check the link and try again.</h1>';
}
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Obsidian Redirector</title>
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">
</head>
<body>
<noscript>
<h1>JavaScript is required for redirection</h1>
</noscript>
</body>
</html>