diff options
author | Melody Horn <melody@boringcactus.com> | 2024-09-30 19:14:53 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2024-09-30 19:14:53 -0600 |
commit | 1538c0fe5b9fcb6a92ede04698274024b8c68e92 (patch) | |
tree | c459c14bf508078bf68c35a16fb92aae329ea172 /assets/site.js | |
parent | ae5d5d8148108a4b2b108e2642f39b1e9e6e9e83 (diff) | |
download | boringcactus.com-1538c0fe5b9fcb6a92ede04698274024b8c68e92.tar.gz boringcactus.com-1538c0fe5b9fcb6a92ede04698274024b8c68e92.zip |
rework profiles elsewhere
Diffstat (limited to 'assets/site.js')
-rw-r--r-- | assets/site.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/assets/site.js b/assets/site.js new file mode 100644 index 0000000..2614c4c --- /dev/null +++ b/assets/site.js @@ -0,0 +1,19 @@ +// Vidrun, born of the sea-wind through the spruce +// Vidrun, green-tinged offshoot of my bough, joy and burden of my life +// Vidrun, fierce and clever, may our clan’s wisdom be yours: +// +// Never read Hacker News +// - Aphyr, "Hexing the technical interview" +if (document.referrer.startsWith("https://news.ycombinator.com")) { + document.location = "https://upload.wikimedia.org/wikipedia/commons/d/d4/Human_fart.wav" +} + +const replaceWithEmailLink = document.getElementById("index/replace-with-email-link"); +if (replaceWithEmailLink !== null) { + const newNode = document.createElement('a'); + newNode.innerText = 'email'; + newNode.href = 'mailto:' + + replaceWithEmailLink.querySelector('code') + .innerText.replace('<this domain>', location.hostname); + replaceWithEmailLink.replaceWith(newNode); +} |