Comment by chrismorgan
1 hour ago
> hit hide on the domains that I never want to see anything from
You could convert this into content blocker filters for the likes of uBlock Origin:
news.ycombinator.com##.submission:has([href^="https://example.com/"]),.submission:has([href^="https://example.com/"])+tr,.submission:has([href^="https://example.com/"])+tr+.spacer
(You can append `:style(color:orange)` or such to apply a different style instead of hiding, if you want to be able to hit the hide link in order to get a new thirtieth item—though you could automate that by writing a user script instead.)
Or user stylesheets (I use Stylus in Firefox to manage such things):
.submission:has([href="from?site=example.com"]) {
&, & + tr, & + tr + .spacer {
display: none;
}
}
(I showed two different selectors: [href^="https://example.com/"] will match the complete origin, [href="from?site=example.com"] will match the domain as presented by HN, including any subdomains.)
No comments yet
Contribute on Hacker News ↗