TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

27 pointsby anbardoiabout 1 year ago
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 comments

kazinatorabout 1 year ago
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.
khaledhabout 1 year ago
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 未加载
mtmailabout 1 year ago
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>
karmakazeabout 1 year ago
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>
jpl56about 1 year ago
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
gabrielsrokaabout 1 year ago
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>
gtirloniabout 1 year ago
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_zhongabout 1 year ago
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!
DevNinjaSabout 1 year ago
There&#x27;s probably not such a feature now. But if HN could provide such a function, I would wholeheartedly support it.
评论 #40074481 未加载
评论 #40074495 未加载
axiologistabout 1 year ago
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 未加载
48864w6uiabout 1 year ago
Hnrss.org and filter in your favorite way?
unravellerabout 1 year ago
many user scripts for filtering sites on hn on greasyfork. search the url or site name there.
chrisjjabout 1 year ago
&gt; paywalled&#x2F;account-walled articles<p>Most soon receive a comment having a bypassing link e.g. to archive.ph.
urauraabout 1 year ago
I thought people here bypassed the paywall to read.