commit 212798a98a70cc99180c0e46dccf454ed26f5a1c Author: Sebastian Cabrera Date: Tue Jul 9 06:09:22 2024 -0400 Initial commit 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