From 212798a98a70cc99180c0e46dccf454ed26f5a1c Mon Sep 17 00:00:00 2001 From: Sebastian Cabrera Date: Tue, 9 Jul 2024 06:09:22 -0400 Subject: [PATCH] Initial commit --- script.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 script.js diff --git a/script.js b/script.js new file mode 100644 index 0000000..7d14569 --- /dev/null +++ b/script.js @@ -0,0 +1,16 @@ +// ==UserScript== +// @name Use old new Reddit +// @namespace http://tampermonkey.net/ +// @version 1.1 +// @description forward the ugly new reddit to the older new reddit +// @author You +// @match https://*.reddit.com/* +// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com +// @grant none +// ==/UserScript== + +(function() { + 'use strict'; + + 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