diff --git a/hacker_news_redirect/hn_premii_com_redirect.js b/hacker_news_redirect/hn_premii_com_redirect.js index a335b15..ca5cf27 100644 --- a/hacker_news_redirect/hn_premii_com_redirect.js +++ b/hacker_news_redirect/hn_premii_com_redirect.js @@ -7,4 +7,7 @@ // @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') \ No newline at end of file +(function() +{ + window.location.href='https://hn.premii.com/#/comments/' + new URLSearchParams(window.location.search).get('id') +})(); \ No newline at end of file