-
-
Save spuranam/67b912eba2aa7abc829ef3ec29c304f7 to your computer and use it in GitHub Desktop.
Bypass the annoying paywall on Medium.com and DataScience.com
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 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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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