diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-09-10 17:24:12 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-09-10 17:24:12 -0300 |
commit | e3a03a3b6c39a3760b060f208eb3399948989c8c (patch) | |
tree | f6e7e559597fafd35a1b0748ee01b691951a39da /static-page | |
parent | 60facadfb186f3dcf783eae62226cd4539bec38c (diff) |
404 phrasing
Diffstat (limited to 'static-page')
-rw-r--r-- | static-page/404.yaml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/static-page/404.yaml b/static-page/404.yaml index fc17cbf6..af293c8d 100644 --- a/static-page/404.yaml +++ b/static-page/404.yaml @@ -2,6 +2,24 @@ Name: 404 Not Found Directory: '404' Absolute Links: true Content: |- - Sorry, the page you're trying to access couldn't be found. If you followed a link here from HSMusic Wiki, [[static:feedback|let us know]] and we'll fix it up! Or if you came from another website... perhaps send a friendly notice to its friendly webmaster? ✨ + Sorry, the page you're trying to access couldn't be found. If you followed a link here from HSMusic Wiki, [[static:feedback|let us know]] and we'll fix it up! Or, if you came from another website... perhaps send a friendly notice to its friendly webmaster? ✨ Please press the back button to return where you came from, or [[home:-|head back to the wiki home page]]. +Script: |- + if ((new Date()).getDay() === 3 && Math.random() <= 0.1025) { + const title = document.querySelector('title'); + if (title) title.innerHTML = '404 Wormant'; + + const h1 = document.querySelector('h1'); + if (h1) h1.innerHTML = '404 Wormant'; + + const firstP = document.querySelector('#content p'); + if (firstP) { + let next = firstP.nextElementSibling; + while (next) { + next.innerHTML = 'wormant'; + next = next.nextElementSibling; + } + firstP.innerHTML = 'Sorry, this page went wormant. Catch us in a decade!'; + } + } |