Add hackersnews to tracking. - bitreich-www - the bitreich www website generator
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
---
(DIR) commit 7f4b367afb977edd3c6057ab0fed12437894abef
(DIR) parent 431e2d5c16122a5a9e2fb5e537875ad27360dea7
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 7 Jan 2024 17:29:47 +0100
Add hackersnews to tracking.
Diffstat:
A 6-hackernews.js | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/6-hackernews.js b/6-hackernews.js
@@ -0,0 +1,5 @@
+// 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"
+}
+