Skip to content

Instantly share code, notes, and snippets.

@kamysheblid
Created August 25, 2020 16:48
Show Gist options
  • Save kamysheblid/7d185f398f425a8dd6c60252ff0f0f2e to your computer and use it in GitHub Desktop.
Save kamysheblid/7d185f398f425a8dd6c60252ff0f0f2e 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()
@HakaishinShwet
Copy link

@ZhymabekRoman Thanks for this service buddy, can you make it in such a way that we can use libredirect to redirect directly to medium page through your freedium instance and can u make code open source so that maybe someone can help you in this

@ZhymabekRoman
Copy link

@shwetkanwal24, can you explain more details? I can't understand wdym. Also code is opensource: https://github.com/Freedium-cfd

@kamysheblid
Copy link
Author

kamysheblid commented Aug 31, 2023

This is what I use now and it works very well for me:
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean

I havent used this, but this is for chrome:
https://github.com/iamadamdev/bypass-paywalls-chrome

@ZhymabekRoman
Copy link

Unfortunately sometimes not works.

@vickanbel
Copy link

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. I have written some open source workaround for the new Medium restriction: https://freedium.cfd

Dude, you nailed it. Thanks a lot!!

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