Skip to content

A userscript for Hacker News that adds archive links under submissions that include paywalled articles.

License

Notifications You must be signed in to change notification settings

MostlyEmre/hn-anti-paywall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT

Note! If you want to build the script without using GreasyFork or something. Add the array of paywall urls inside paywalls.json into the paywalls const in script.js. The code won't work otherwise.

GreasyFork: https://greasyfork.org/en/scripts/452024-hacker-news-anti-paywall
Detailed write-up: https://gist.github.com/MostlyEmre/ddec18c4a5b18413994ff9e179bf00ac
Show HN: https://news.ycombinator.com/item?id=33794672

Usage

  • Install through GreasyFork
  • Surf the HackerNews
  • Click on one of the archive links when you see a paywalled article to read it without paywall.
  • If the specific article isn't available, try another archive link.
  • If the article is not available in any of the links, please archive it through the archive.is link.

Screenshots

A screenshot of the script in multiple posts page A screenshot of the script on single post page

Anti-Paywall Archive Link Providers

Main: https://archive.is/
Alternative 1: https://12ft.io/
Alternative 2: archive.org

Feel free to recommend more. Archive.is and Archive.org doesn't have all the links archived. 12ft.io works differently but it doesn't support all websites. I found that majority of paywalled links are available through one of these providers in any given paywall.

Make the world a better place: When you click on the archive.is URL. If there are no pre-existing archives available, then please click on archive this url as this will help other users to see an archived link. Kinda like BE KIND REWIND.

Paywall List

The paywall list (paywalls.json) is decoupled from the following URL. At first, I was mindfully fetching the list, but then I just manually inserted the list, way simpler this way.

iamadamdev/bypass-paywalls-chrome

If you wish to update the paywall list (paywalls.json), feel free to edit and send a pull request.