Tell HN: Adblock rules to hide HN posts about Twitter & Musk

https://news.ycombinator.com/item?id=33412932
by xvello • 4 years ago
64 14 4 years ago

For those who want some relief from the Twitter/Musk drama, here are three cosmetic filters to add to your custom uBlockOrigin / AdGuard rules:

    news.ycombinator.com##tr.athing span.titleline > a:has-text(/\bTwitter\b/):upward(tr):remove()
    news.ycombinator.com##tr.athing span.titleline > a:has-text(/\bMusk\b/):upward(tr):remove()
    news.ycombinator.com##tr.spacer + tr:not(.athing):remove()
The first two ones remove the post title if it contains Twitter and/or Musk. The third one removes the second line and the spacer.

I also hide some machine learning topics with these rules:

    news.ycombinator.com##tr.athing span.titleline > a:has-text(/\bstable\Wdiffusion\b/i):upward(tr):remove()
    news.ycombinator.com##tr.athing span.titleline > a:has-text(/\bdall-e\b/i):upward(tr):remove()
I'll probably make that a configurable template for https://letsblock.it/ soon

Related Stories

Loading related stories...

Source preview

news.ycombinator.com