Compare commits

...

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk 7f3b6c2275
Add hacker_news_redirect 2021-04-29 19:12:33 +02:00
Lukáš Kucharczyk 02142f1517
Edit readme 2021-04-29 19:12:22 +02:00
3 changed files with 15 additions and 3 deletions

5
README.adoc Normal file
View File

@ -0,0 +1,5 @@
= Browser Userscripts
A collection of my Greasemonkey-like userscripts.
They are also mirrored here: https://greasyfork.org/en/users/706892-kucharczykl

View File

@ -1,3 +0,0 @@
# userscripts
A collection of my Greasemonkey-like userscripts.

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