skynet/qutebrowser/greasemonkey/libreddit.js

14 lines
460 B
JavaScript
Raw Normal View History

// ==UserScript==
// @name Reddit to Libreddit Redirect
// @namespace RedirectRedditToLibreddit
// @description redirect reddit links to libreddit
// @include https://www.reddit.com/
// @include https://www.reddit.com/r/*
// @include https://www.reddit.com/search*
// @version 1.01
// @grant none
// ==/UserScript==
var newurl = window.location.href.replace(/\/\/(www\.)?reddit.com\//, '//libreddit.spike.codes/');
window.location.replace(newurl);