Skip to content

Instantly share code, notes, and snippets.

@spuranam
Forked from kamysheblid/stopmediumpaywall.txt
Created July 14, 2023 02:52
Show Gist options
  • Save spuranam/67b912eba2aa7abc829ef3ec29c304f7 to your computer and use it in GitHub Desktop.
Save spuranam/67b912eba2aa7abc829ef3ec29c304f7 to your computer and use it in GitHub Desktop.
Bypass the annoying paywall on Medium.com and DataScience.com
// ==UserScript==
// @name Stop the Medium The Pay Wall
// @namespace StopThePayWall
// @version 1
// @include *medium*
// @include *datascience*
// ==/UserScript==
async function abc () {
var resp = (await fetch(location, { "credentials": "omit", "headers": { "Accept": "text/html,text/xhtml,text/xml,*/*", "Connection": "keep-alive", }, "method": "GET", "mode": "cors" }));
var text = await resp.text();
return await text;
};
async function changeBody() {
var a = await abc();
document.body.innerHTML = a;
};
window.onload = changeBody()
@ZhymabekRoman
Copy link

Hello everyone. Unfortunately, sites that allow you to bypass paid articles like 12ft.io no longer work, Medium has changed the logic of how they generate access. After some thought, I decided to write my own site that would allow you to read Medium articles for free. I called it Freedium. Unfortunately not everything works properly, but for the most part it should work, if you find any bugs please PM me, or you can contribute to the code as it's completely open source: https://freedium.cfd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment