Created
August 21, 2025 23:07
-
-
Save david-shepard/e4aec0340dbe1c39c87dd614a9540752 to your computer and use it in GitHub Desktop.
redirect-medium-urls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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