-
-
Save geekwolverine/0aa13a87b904ec5a8d4267be26c82892 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