mirror of
https://github.com/chev2/scripts-styles.git
synced 2026-01-14 03:02:11 +00:00
Add UserScript: Redirect New Reddit to Old Reddit
This commit is contained in:
parent
df24810318
commit
e7a864585e
1 changed files with 25 additions and 0 deletions
25
scripts/redirect-reddit-new-to-old.js
Normal file
25
scripts/redirect-reddit-new-to-old.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// ==UserScript==
|
||||
// @name Redirect: New Reddit to Old Reddit
|
||||
// @author Chev <riskyrains@proton.me> (https://github.com/chev2)
|
||||
// @version 1.0.0
|
||||
// @description Redirects from new Reddit to old Reddit.
|
||||
// @namespace github.com/chev2
|
||||
// @license Apache-2.0
|
||||
|
||||
// @homepageURL https://github.com/chev2/scripts-styles
|
||||
// @supportURL https://github.com/chev2/scripts-styles/issues
|
||||
// @updateURL https://raw.githubusercontent.com/chev2/scripts-styles/main/scripts/redirect-reddit-new-to-old.js
|
||||
// @downloadURL https://raw.githubusercontent.com/chev2/scripts-styles/main/scripts/redirect-reddit-new-to-old.js
|
||||
|
||||
// @match *://www.reddit.com/*
|
||||
// @icon https://icons.duckduckgo.com/ip3/reddit.com.ico
|
||||
|
||||
// @grant none
|
||||
// @run-at document-start
|
||||
// ==/UserScript==
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
location.replace(location.href.replace("www.reddit.com/", "old.reddit.com/"));
|
||||
})();
|
||||
Loading…
Add table
Reference in a new issue