14 lines
644 B
JavaScript
14 lines
644 B
JavaScript
// ==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.
|
|
// @downloadURL https://git.kucharczyk.xyz/lukas/userscripts/raw/branch/main/hacker_news_redirect/hn_premii_com_redirect.user.js
|
|
// ==/UserScript==
|
|
(function()
|
|
{
|
|
window.location.href='https://hn.premii.com/#/comments/' + new URLSearchParams(window.location.search).get('id')
|
|
})(); |