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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is there a way to customize the stories on Hacker News?

27 点作者 anbardoi大约 1 年前
I just want to remove stories that link to sites like bloomberg, New York Times, Wired, etc. because they are paywalled/account-walled articles.

14 条评论

kazinator大约 1 年前
You can use uBlock Origin for this!<p>Go to My Filters, and add:<p><pre><code> news.ycombinator.com##a[href*=&quot;UNWANTED.DOMAIN.COM&quot;]:upward(3) news.ycombinator.com##a[href*=&quot;UNWANTED.DOMAIN.COM&quot;]:upward(3) + tr </code></pre> Maybe someone can come up with a better solution, avoiding the hacky upward selection and avoiding repetition of the domain match.<p>The idea here is that we match an &lt;a&gt; element whose href contains the unwanted domain. Then upward(3) selects the great-grandparent element: we are assuming that the &lt;a&gt; is buried three levels within a &lt;tr&gt; element, and we nuke that &lt;tr&gt; element.<p>Even if a nicer rule is found, it&#x27;s still not great UX to have to go into the filter panel and copy-paste rules.<p>Then we repeat the entire rule and add &quot;+ tr&quot; to nuke the successor also. The successor row has the small print: the story&#x27;s points, who submitted it, number of comments, flag&#x2F;hide buttons.
khaledh大约 1 年前
I recently developed an extension to &quot;dim&quot; HN stories based on keywords and&#x2F;or domain names[0]. You can also dim&#x2F;undim stories manually.<p>The list of keywords&#x2F;domains is currently hard-coded (based on my preferences), but I intend to add an options page to set those.<p>The reason I wanted to just dim the stories is to make sure I can still read stories in case something got dimmed as a false positive.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;khaledh&#x2F;hn-mod">https:&#x2F;&#x2F;github.com&#x2F;khaledh&#x2F;hn-mod</a>
评论 #40084893 未加载
mtmail大约 1 年前
There&#x27;s some tools to filter in the browser <a href="https:&#x2F;&#x2F;greasyfork.org&#x2F;en&#x2F;scripts?q=hacker+news+filter" rel="nofollow">https:&#x2F;&#x2F;greasyfork.org&#x2F;en&#x2F;scripts?q=hacker+news+filter</a>
karmakaze大约 1 年前
I made hackerer.news[0] that filters all stories for the day into groups. I should add a paywalled group since I usually skip them too.<p>Sometimes I&#x27;ll just google part of the title and read a different article on the topic. It&#x27;s rare for a story to only be reported by one source and I usually only care about deep details for tech which tends not to be paywalled much as business or politics.<p><i>Edit: I just wanted to make an issue for this and realized this is still on GitLab[1]--should move it too.</i><p>[0] <a href="https:&#x2F;&#x2F;hackerer.news&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hackerer.news&#x2F;</a> [1] <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;karmakaze&#x2F;hackerer-news" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;karmakaze&#x2F;hackerer-news</a>
jpl56大约 1 年前
I&#x27;m still using an old extension called &quot;Hacker News: Mark All Read&quot; from 2015, it marks all articles on the page as read once I click on the button (at the bottom of the page), it&#x27;s very convenient.<p>It was updated un 2023 to keep on with new HTML formatting. Thanks to the authors (Guillaume Mouron, based on Daniele Mazzini code)! &lt;3
gabrielsroka大约 1 年前
I wrote my own client ⁰ using the official HN API ¹<p>⁰ <a href="https:&#x2F;&#x2F;github.com&#x2F;gabrielsroka&#x2F;gabrielsroka.github.io&#x2F;blob&#x2F;master&#x2F;hn.html">https:&#x2F;&#x2F;github.com&#x2F;gabrielsroka&#x2F;gabrielsroka.github.io&#x2F;blob&#x2F;...</a><p>¹ <a href="https:&#x2F;&#x2F;github.com&#x2F;HackerNews&#x2F;API">https:&#x2F;&#x2F;github.com&#x2F;HackerNews&#x2F;API</a>
gtirloni大约 1 年前
This has recently been working for me: <a href="https:&#x2F;&#x2F;github.com&#x2F;gtirloni&#x2F;internet-serenity-now&#x2F;blob&#x2F;main&#x2F;hackernews&#x2F;tampermonkey_hn_posthider.js">https:&#x2F;&#x2F;github.com&#x2F;gtirloni&#x2F;internet-serenity-now&#x2F;blob&#x2F;main&#x2F;...</a>
andrew_zhong大约 1 年前
If you are looking for broader less heuristic based filter, you can try LightFeed (full disclosure, I am the creator of LightFeed)<p>It filters and summarizes stories using LLM and your prompt on any site including HN!
DevNinjaS大约 1 年前
There&#x27;s probably not such a feature now. But if HN could provide such a function, I would wholeheartedly support it.
评论 #40074481 未加载
评论 #40074495 未加载
axiologist大约 1 年前
Wouldn&#x27;t it be a more useful customization to have paywalled sites automatically redirected for being opened via <a href="https:&#x2F;&#x2F;archive.{is,ph}" rel="nofollow">https:&#x2F;&#x2F;archive.{is,ph}</a>, instead?
评论 #40084911 未加载
48864w6ui大约 1 年前
Hnrss.org and filter in your favorite way?
unraveller大约 1 年前
many user scripts for filtering sites on hn on greasyfork. search the url or site name there.
chrisjj大约 1 年前
&gt; paywalled&#x2F;account-walled articles<p>Most soon receive a comment having a bypassing link e.g. to archive.ph.
uraura大约 1 年前
I thought people here bypassed the paywall to read.