Add hacker_news_redirect
This commit is contained in:
parent
02142f1517
commit
7f3b6c2275
|
@ -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')
|
Loading…
Reference in New Issue