// ==UserScript== // @name Redirect to Farside // @version 1.4 // @description Redirects the configured websites to third-party privacy-respecting front ends. // @author examosa // @license AGPLv3-or-later // @updateUrl https://gist.github.com/examosa/50eb28bc16a006b62b3f43893ab457e7/raw/redirect-to-farside.js // @match https://www.fandom.com/* // @match https://*.medium.com/* // @match https://stackoverflow.com/* // @match https://www.reddit.com/* // @match https://www.youtube.com/* // @match https://www.quora.com/* // @match https://www.geeksforgeeks.org/* // @runAt document_start // ==/UserScript== const replacements = Object.entries({ 'www.geeksforgeeks.org': 'ducksforducks.private.coffee', }); const replacement = replacements.find(([hostname]) => hostname === location.hostname); const target = replacement ? location.href.replace(...replacement) : `https://farside.link/${location.href}`; location.replace(target);