Skip to content

Instantly share code, notes, and snippets.

@morisono
Forked from mathix420/medium.user.js
Created August 23, 2025 02:44
Show Gist options
  • Save morisono/291509679858bbb76c06d8ccd6c135f5 to your computer and use it in GitHub Desktop.
Save morisono/291509679858bbb76c06d8ccd6c135f5 to your computer and use it in GitHub Desktop.
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 1.2
// @updateURL https://gist.github.com/mathix420/e0604ab0e916622972372711d2829555/raw/medium.user.js
// @downloadURL https://gist.github.com/mathix420/e0604ab0e916622972372711d2829555/raw/medium.user.js
// @website https://freedium.cfd
// @author Mathix420, ZhymabekRoman
// @description Don't forget to remove `@match` filters you don't want.
// ==/UserScript==
(function () {
// To allow seeing original articles that were already redirected to freedium.
if (window.location.href.endsWith('#bypass')) {
return;
}
const mediumPostUrlProperty = document.head.querySelector('meta[property="al:android:url"]')
if ((mediumPostUrlProperty || {}).content && mediumPostUrlProperty.content.includes('medium://p/')) {
window.location.href = 'https://freedium.cfd/' + window.location.href;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment