TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A bookmarklet to remove clickgates on New York Times, Medium, etc.

71 点作者 timar超过 5 年前
Recently i stumbled on too many clickgates on the Medium blog Towards Data science. Considering that most people publish to share knowledge on Medium and are driven into putting their content behind a paywall, without actually getting paid for it, including myself. I felt like Medium is running the academic publishing scheme. Get free content and get paid for it. So I decided to create a small script to bypass the paywall on Medium, it turns out it also works on other newssites. Heres the website: https://sugoidesune.github.io/readium/ For the curious I will explain the technical aspects in a comment.

11 条评论

timar超过 5 年前
Here is a gist of the commented code. It works by fetching the HTML content of the website, anonymously with no cookies. Using the fetch API. In a second step the HTML is preprocessed, removing javascript, inserting elements like images that might be done through javascript etc. The third step is to rerplace the current windows HTML with the clean-preprocessed HTML with the article.<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;sugoidesune&#x2F;884bfdf8a975920e98e7307e981e8daf?fbclid=IwAR1Hb8Og5_u8bbWbePfZi-tpN2lObKybZS01kICH_pwxIR4lFUbPY96qm8Q" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;sugoidesune&#x2F;884bfdf8a975920e98e7307e...</a>
评论 #21756954 未加载
hprotagonist超过 5 年前
<a href="https:&#x2F;&#x2F;medium.com&#x2F;@tgaul&#x2F;introducing-unobstruct-230e4e95cf5e" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@tgaul&#x2F;introducing-unobstruct-230e4e95cf5...</a><p>works nicely for iOS&#x2F;mobilesafari.
lewiscollard超过 5 年前
Good stuff timar - this definitely beats my trick of hitting the Esc key at just the right moment to stop JS from loading. I&#x27;ve gotten very good at that, but also life is very short and I shouldn&#x27;t need to! So your bookmarklet will come to the rescue :)<p>Could this be integrated with Firefox&#x27;s Reader mode somehow?
评论 #21756879 未加载
barretts超过 5 年前
Do you think the 1,600 journalists at The New York Times, many of whom work in difficult environments (including the White House, lol), should work for free? Quite the Scrooge move.
评论 #21757267 未加载
评论 #21757855 未加载
评论 #21757069 未加载
评论 #21758404 未加载
评论 #21758274 未加载
评论 #21757073 未加载
评论 #21757280 未加载
评论 #21757000 未加载
评论 #21756990 未加载
评论 #21757272 未加载
评论 #21757101 未加载
评论 #21757163 未加载
评论 #21756955 未加载
fidla超过 5 年前
Thanks! I&#x27;ve been looking for something like this for ages. I use Brave browser on my android and pc. This will be super handy!
qnsi超过 5 年前
I though people are paid for posting on medium?
评论 #21756745 未加载
Eduard超过 5 年前
How to use it with mobile Chrome on Android?
wiseleo超过 5 年前
Thank you. Both for the code and for giving me an inspiration. :)
mchintu超过 5 年前
This is fantastic
selfishgene超过 5 年前
This one is also quite helpful:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;iamadamdev&#x2F;bypass-paywalls-firefox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;iamadamdev&#x2F;bypass-paywalls-firefox</a><p>... for all of the folks out there who don&#x27;t have a university picking up the tab for the articles that they want to read.<p>It&#x27;s important to remember that paywalls disproportionately impact those who are not &quot;working&quot; in an academic setting.
评论 #21756939 未加载
评论 #21756948 未加载
LoSboccacc超过 5 年前
this it&#x27;s literally facilitating copyright infringement<p>if you don&#x27;t want to pay for them is fine, just don&#x27;t read them
评论 #21757399 未加载