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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Any way to hide all posts from specific domains?

18 点作者 kkoncevicius大约 3 年前
Lately the number of high-ranking submissions from sites like economist, nytimes, and even twitter, seem to be on the rise. I don&#x27;t remember ever reading anything interesting from these sources. So I am thinking maybe I can increase the signal by having all post from those domains to be hidden automatically.<p>Maybe someone has a solution for this?

6 条评论

cornegidouille大约 3 年前
Here&#x27;s a quick greasemonkey script I just whipped up that you could start from:<p><pre><code> (function(){ &#x27;use strict&#x27;; var links = document.getElementsByClassName(&quot;titlelink&quot;); for(var link of links){ if(link.href.includes(&quot;twitter&quot;) ){ var owner = link.closest(&quot;.athing&quot;); owner.nextSibling.remove(); owner.remove(); } } })(); </code></pre> You would need to adapt the &quot;includes()&quot; to match any URL you don&#x27;t care for.
评论 #30476100 未加载
joshstrange大约 3 年前
I use this chrome plugin (HackerNew [0]) for a few QoL improvements and it can filter out posts by user&#x2F;keyword&#x2F;domain.<p>[0] <a href="https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;hackernew&#x2F;lgoghlndihpmbbgmbpjohilcphbfhddd" rel="nofollow">https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;hackernew&#x2F;lgoghlnd...</a>
评论 #30470322 未加载
troydavis大约 3 年前
A Greasemonkey&#x2F;Tampermonkey userscript will make quick work of this. Compare the submission domain to the list you want to ignore: <a href="https:&#x2F;&#x2F;www.tampermonkey.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.tampermonkey.net&#x2F;</a><p>Optionally, you can publish the userscript for others.
alphabet9000大约 3 年前
try adding something like this to your ublock &#x27;my filters&#x27; (if you add more, add the domains to each line, separated by a &quot;|&quot;), e.g. this blocks nytimes.com and economist.com.<p><pre><code> news.ycombinator.com##.itemlist &gt; tbody &gt; tr:has(.sitestr:has-text(&#x2F;nytimes.com|economist.com&#x2F;i)) news.ycombinator.com##.itemlist &gt; tbody &gt; tr:has(.sitestr:has-text(&#x2F;nytimes.com|economist.com&#x2F;i)) + tr news.ycombinator.com##.itemlist &gt; tbody &gt; tr:has(.sitestr:has-text(&#x2F;nytimes.com|economist.com&#x2F;i)) + tr + tr</code></pre>
nowherebeen大约 3 年前
I want a way to hide all company specific job postings on the front page other than whoishiring.
PaulHoule大约 3 年前
I built this thing<p><a href="https:&#x2F;&#x2F;ontology2.com&#x2F;essays&#x2F;ClassifyingHackerNewsArticles&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ontology2.com&#x2F;essays&#x2F;ClassifyingHackerNewsArticles&#x2F;</a><p>based on these gripes<p><a href="https:&#x2F;&#x2F;ontology2.com&#x2F;essays&#x2F;HackerNewsForHackers&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ontology2.com&#x2F;essays&#x2F;HackerNewsForHackers&#x2F;</a><p>What I&#x27;d say based on that research project was that my intuition that I wanted to block things based on specific rules and keywords wasn&#x27;t so hot. For instance I don&#x27;t feel that Hacker News is crazy for Apple these days, when I was doing that project there was the combination of a high rate of Apple articles because Apple had just announced a round of products and also those products being derivatives of last year&#x27;s products and not being exciting to me.<p>I still think paywall articles are worth either blocking or automatically routing to archive.is, and there certainly are a set of bad sites (medium, right-wing substacks, etc.) But actually the learning approach is highly effective against the Apple obsessions, dogpill theorists who can&#x27;t stand that people are talking about anything other than Ivermectin and most of what is truly annoying.<p>A problem that still bugs me is what I was going to call &quot;me tooism&quot; when I was writing those articles but thankfully I didn&#x27;t publish it before the #MeToo hashtag got popular. It isn&#x27;t that particular phenomenon but the more general one that somebody sees an article about topic X got 500 votes on the front page of HN so then 10 people quickly write half-backed articles replying to the original article because they think if they write something fast enough it will also get 500 votes.<p>That&#x27;s closely related to the problem of &quot;news&quot; where inevitably an article about something (say the BBC reports some people in Ukraine blew up a bridge to slow down Russian invaders) is followed by a number of other reports by other news agencies about the same thing. Maybe one of those articles is newsworthy but the rest of them aren&#x27;t. Really they should be clustered as a single topic and filtered on that basis but what that means is not so simple: do you show only the first article on the topic or do you show the &quot;best&quot; article? Does the cluster end up including other bridges getting blown up in the Ukraine? Other bridges blown up everywhere, etc. It&#x27;s easy to talk about but not so easy to implement.