fix name for user script install trigger

This commit is contained in:
Sebastian Cabrera 2024-07-09 06:14:04 -04:00
parent 9b9898d2f0
commit 64cb5575ca
No known key found for this signature in database
GPG key ID: 9C70960A46161D08

View file

@ -1,18 +0,0 @@
// ==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';
})();