Last active
January 29, 2026 11:51
-
-
Save mica/bc8a1ba94f249c6ab839a614ea9daab6 to your computer and use it in GitHub Desktop.
Archive.today bookmarklet for bypassing article paywalls. Get it here: https://bookmarkl.ink/mica/bc8a1ba94f249c6ab839a614ea9daab6
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
| //bookmarklet_title: Open on Archive.today | |
| //bookmarklet_about: Bypass any paywall by clicking this bookmarklet from the article | |
| let xhr = new XMLHttpRequest(); | |
| xhr.open('get', 'https://archive.ph/' + location.origin + location.pathname); | |
| xhr.responseType = 'document'; | |
| xhr.onload = () => { | |
| if (xhr.response.querySelector('#CONTENT').innerText.includes('No results')) { | |
| location.href = 'https://archive.ph/' + location.origin + location.pathname | |
| } else { | |
| location.href = xhr.response.querySelector('.TEXT-BLOCK > a').href; | |
| } | |
| } | |
| xhr.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment