From 7e675e32c0c9b9ec8f8062e23daa5720991a9040 Mon Sep 17 00:00:00 2001 From: Sebastian Cabrera Date: Tue, 9 Jul 2024 06:22:25 -0400 Subject: [PATCH] 1.6 - this never even worked, hopefully it does now --- newnewredditsucks.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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