diff --git a/newnewredditsucks.user.js b/newnewredditsucks.user.js index f65985e..17dc5eb 100644 --- a/newnewredditsucks.user.js +++ b/newnewredditsucks.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Use old new Reddit // @namespace https://codeberg.org/okseby/newnewredditsucks -// @version 1.5 +// @version 1.6 // @description forward the ugly new reddit to the older new reddit // @author okseby // @match https://*.reddit.com/* @@ -14,7 +14,7 @@ (function () { 'use strict'; - if (window.location.href.includes == 'www.reddit.com' && !window.location.href.includes('/media')) { - window.location.host = 'new.reddit.com'; + if (window.location.hostname == 'www.reddit.com' && !window.location.hostname.includes('/media')) { + window.location.hostname = 'new.reddit.com'; } })(); \ No newline at end of file