aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_layouts/default.html1
-rw-r--r--fuck-hn.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 7970741..b9c7d9c 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -32,5 +32,6 @@
<h1>{{ page.title }}{% if page.date %} <small>({{ page.date | date_to_string }})</small>{% endif %}</h1>
{{ content }}
</main>
+<script src="/fuck-hn.js"></script>
</body>
</html>
diff --git a/fuck-hn.js b/fuck-hn.js
new file mode 100644
index 0000000..07ff942
--- /dev/null
+++ b/fuck-hn.js
@@ -0,0 +1,4 @@
+// Hacker News is bad.
+if (document.referrer.startsWith("https://news.ycombinator.com")) {
+ document.location = "https://upload.wikimedia.org/wikipedia/commons/d/d4/Human_fart.wav"
+}