Skip to content

Instantly share code, notes, and snippets.

@geekwolverine
Forked from kamysheblid/stopmediumpaywall.txt
Created January 13, 2026 16:36
Show Gist options
  • Select an option

  • Save geekwolverine/0aa13a87b904ec5a8d4267be26c82892 to your computer and use it in GitHub Desktop.

Select an option

Save geekwolverine/0aa13a87b904ec5a8d4267be26c82892 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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment