You can use uBlock Origin for this!<p>Go to My Filters, and add:<p><pre><code> news.ycombinator.com##a[href*="UNWANTED.DOMAIN.COM"]:upward(3)
news.ycombinator.com##a[href*="UNWANTED.DOMAIN.COM"]: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 <a> element whose href contains the unwanted domain. Then upward(3) selects the great-grandparent element: we are assuming that the <a> is buried three levels within a <tr> element, and we nuke that <tr> element.<p>Even if a nicer rule is found, it'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 "+ tr" to nuke the successor also. The successor row has the small print: the story's points, who submitted it, number of comments, flag/hide buttons.
I recently developed an extension to "dim" HN stories based on keywords and/or domain names[0]. You can also dim/undim stories manually.<p>The list of keywords/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://github.com/khaledh/hn-mod">https://github.com/khaledh/hn-mod</a>
There's some tools to filter in the browser <a href="https://greasyfork.org/en/scripts?q=hacker+news+filter" rel="nofollow">https://greasyfork.org/en/scripts?q=hacker+news+filter</a>
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'll just google part of the title and read a different article on the topic. It'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://hackerer.news/" rel="nofollow">https://hackerer.news/</a>
[1] <a href="https://gitlab.com/karmakaze/hackerer-news" rel="nofollow">https://gitlab.com/karmakaze/hackerer-news</a>
I'm still using an old extension called "Hacker News: Mark All Read" from 2015,
it marks all articles on the page as read once I click on the button (at the bottom of the page), it'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)! <3
I wrote my own client ⁰ using the official HN API ¹<p>⁰
<a href="https://github.com/gabrielsroka/gabrielsroka.github.io/blob/master/hn.html">https://github.com/gabrielsroka/gabrielsroka.github.io/blob/...</a><p>¹ <a href="https://github.com/HackerNews/API">https://github.com/HackerNews/API</a>
This has recently been working for me: <a href="https://github.com/gtirloni/internet-serenity-now/blob/main/hackernews/tampermonkey_hn_posthider.js">https://github.com/gtirloni/internet-serenity-now/blob/main/...</a>
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!
Wouldn't it be a more useful customization to have paywalled sites automatically redirected for being opened via <a href="https://archive.{is,ph}" rel="nofollow">https://archive.{is,ph}</a>, instead?