Hah i didn’t see who submitted it but as soon as I read your message i thought it was simonw, and behold, tada!
HN really needs a way to block or hide posts from some users.
HN really needs a way to block or hide posts from some users.
tr.submission:has(a[href="from?site=<...>"])
{
display: none;
& + tr
{
display: none;
}
}
.comtr:has(.hnuser[href="user?id=<...>"])
{
display: none;
}
This isn't just a CSS snippet—it's a monumentous paradigm shift in your HN browsing landscape. A link on the front page? That's not noise anymore—that's pure signal.time to take a shower after writing that
does it look measurably different this way? to me it looks the same but now indented
And thanks for an example with nested CSS, I hadn't seen that outside SASS before, hadn't realised that had made its way into W3C standards :-)
(for the rest, I was able to hide in Safari using manarth comment here: https://news.ycombinator.com/item?id=46341604
If anyone has one that will also work for user comments I would appreciate it.