From 46078fa6d1bff2aee70f765ddb8efb5feb7103c4 Mon Sep 17 00:00:00 2001 From: Sebastian Cabrera Date: Tue, 9 Jul 2024 06:15:33 -0400 Subject: [PATCH] 1.3 - just to test updates --- newnewredditsucks.user.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/newnewredditsucks.user.js b/newnewredditsucks.user.js index 18df84e..7169c9f 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.2 +// @version 1.3 // @description forward the ugly new reddit to the older new reddit // @author okseby // @match https://*.reddit.com/* @@ -11,8 +11,10 @@ // @downloadURL https://codeberg.org/okseby/newnewredditsucks/raw/branch/main/script.js // ==/UserScript== -(function() { +(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.href.includes == 'www.reddit.com' && !window.location.href.includes('/media')) { + window.location.host = 'new.reddit.com'; + } })(); \ No newline at end of file