Try to get the extension to pick up the file

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

View File

@ -7,4 +7,7 @@
// @author Lukas Kucharczyk (lukas@kucharczyk.xyz) // @author Lukas Kucharczyk (lukas@kucharczyk.xyz)
// @description Automatically redirects Hacker News links to a more modern interface at hn.premii.com. // @description Automatically redirects Hacker News links to a more modern interface at hn.premii.com.
// ==/UserScript== // ==/UserScript==
window.location.href='https://hn.premii.com/#/comments/' + new URLSearchParams(window.location.search).get('id') (function()
{
window.location.href='https://hn.premii.com/#/comments/' + new URLSearchParams(window.location.search).get('id')
})();