From 7f3b6c227588f36a906c2f8614730a8a85f25249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Thu, 29 Apr 2021 19:12:33 +0200 Subject: [PATCH] Add hacker_news_redirect --- hacker_news_redirect/hn_premii_com_redirect.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hacker_news_redirect/hn_premii_com_redirect.js diff --git a/hacker_news_redirect/hn_premii_com_redirect.js b/hacker_news_redirect/hn_premii_com_redirect.js new file mode 100644 index 0000000..a335b15 --- /dev/null +++ b/hacker_news_redirect/hn_premii_com_redirect.js @@ -0,0 +1,10 @@ +// ==UserScript== +// @name Hacker News Redirect to hn.premii.com +// @namespace Violentmonkey Scripts +// @match https://news.ycombinator.com/item +// @grant none +// @version 1.0 +// @author Lukas Kucharczyk (lukas@kucharczyk.xyz) +// @description Automatically redirects Hacker News links to a more modern interface at hn.premii.com. +// ==/UserScript== +window.location.href='https://hn.premii.com/#/comments/' + new URLSearchParams(window.location.search).get('id') \ No newline at end of file