Add hackersnews to tracking. - bitreich-www - the bitreich www website generator | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
commit 7f4b367afb977edd3c6057ab0fed12437894abef | |
parent 431e2d5c16122a5a9e2fb5e537875ad27360dea7 | |
Author: Christoph Lohmann <[email protected]> | |
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(-) | |
--- | |
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/… | |
+} | |
+ |