newnewredditsucks/newnewredditsucks.user.js

18 lines
No EOL
749 B
JavaScript

// ==UserScript==
// @name Use old new Reddit
// @namespace https://codeberg.org/okseby/newnewredditsucks
// @version 1.2
// @description forward the ugly new reddit to the older new reddit
// @author okseby
// @match https://*.reddit.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// @updateURL https://codeberg.org/okseby/newnewredditsucks/raw/branch/main/script.js
// @downloadURL https://codeberg.org/okseby/newnewredditsucks/raw/branch/main/script.js
// ==/UserScript==
(function() {
'use strict';
if (window.location.href.includes == 'www.reddit.com' && !window.location.href.includes('/media')) window.location.host = 'new.reddit.com';
})();