Skip to content

Instantly share code, notes, and snippets.

@ArduinoAficionado
Forked from mathix420/medium.user.js
Created October 5, 2025 04:09
Show Gist options
  • Select an option

  • Save ArduinoAficionado/08c848d7c899ff5338274a5c2a2fe850 to your computer and use it in GitHub Desktop.

Select an option

Save ArduinoAficionado/08c848d7c899ff5338274a5c2a2fe850 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
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 1.5
// @inject-into content
// @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 () {
// 1. Allow seeing original articles that were already redirected to freedium.
// 2. Do not redirect when editing on medium.
if (window.location.href.endsWith('#bypass') || window.location.href.includes("/edit?source=")) {
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