From d1d65d5d64ea7fc1418c607d12c675113da9513a Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 9 Sep 2020 18:37:29 -0600 Subject: fuck HN all my homies hate HN --- _layouts/default.html | 1 + fuck-hn.js | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 fuck-hn.js 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 @@

{{ page.title }}{% if page.date %} ({{ page.date | date_to_string }}){% endif %}

{{ content }} + 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" +} -- cgit v1.2.3