Skip to content

Instantly share code, notes, and snippets.

@david-shepard
Created August 21, 2025 23:07
Show Gist options
  • Select an option

  • Save david-shepard/e4aec0340dbe1c39c87dd614a9540752 to your computer and use it in GitHub Desktop.

Select an option

Save david-shepard/e4aec0340dbe1c39c87dd614a9540752 to your computer and use it in GitHub Desktop.
redirect-medium-urls
// ==UserScript==
// @name Redirect Medium Urls
// @namespace https://github.com/push-and-pray-ops
// @version 0.1
// @description Redirect medium urls to freedium ones automatically
// @author https://github.com/david-shepard
// @match https://medium.com/*
// @match https://*.medium.com/*
// @grant none
// ==/UserScript==
(function() {
const thisUrl = document.URL;
const baseUrl = "https://freedium.cfd/";
console.log("Previous url: " + thisUrl);
const newUrl = baseUrl + thisUrl;
window.location.href = newUrl;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment