Add hacker_news_redirect

This commit is contained in:
Lukáš Kucharczyk 2021-04-29 19:12:33 +02:00
parent 02142f1517
commit 7f3b6c2275
No known key found for this signature in database
GPG Key ID: 65524498C0196B64
1 changed files with 10 additions and 0 deletions

View File

@ -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')