-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
28 lines (21 loc) · 1.31 KB
/
404.html
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
<script>
const redirects = [
{ match: "discord", link: "https://discord.com/invite/HVt5UeyZrX" },
{ match: "twitter", link: "https://twitter.com/ArielJurkowski" },
{ match: "youtube", link: "https://www.youtube.com/channel/UC5Rk393KJGJAc_9olW3g3iA" },
{ match: "pftr-steam", link: "https://store.steampowered.com/app/1383250/Please_Fix_The_Road/" },
{ match: "pftr-gog", link: "https://www.gog.com/game/please_fix_the_road" },
{ match: "pftr-itch", link: "https://arieljurkowski.itch.io/please-fix-the-road" },
{ match: "pftr-switch", link: "https://www.nintendo.com/us/store/products/please-fix-the-road-switch/" },
{ match: "pftr-xbox", link: "https://www.xbox.com/en-US/games/store/please-fix-the-road/9npwtqhjlh64" },
{ match: "pftr-ps", link: "https://store.playstation.com/en-us/concept/10009773" },
{ match: "pftr", link: "https://arielek.com/#please-fix-the-road" },
{ match: "please", link: "https://arielek.com/#please-fix-the-road" },
{ match: "steam", link: "https://store.steampowered.com/dev/ARIELEK" },
{ match: "x", link: "https://twitter.com/ArielJurkowski" }
];
let path = window.location.pathname.toLowerCase();
var matched = redirects.find(x => path.includes(x.match));
if(matched) window.location.href = matched.link;
else location.href = window.location.origin;
</script>