from Hacker News

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

by xvello on 10/31/22, 8:53 PM with 14 comments

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
  • by dang on 10/31/22, 10:55 PM

    We also get complaints about those stories not being covered enough. The HN front page is suboptimal for nearly every individual user no matter what we do.

    (This is not a criticism of the OP, nor a complaint - I just think it's interesting.)

  • by Finnucane on 10/31/22, 8:55 PM

    Now if we could do that universally.
  • by xvello on 10/31/22, 9:08 PM

    While you're in your settings, add these three rules for a quick & dirty dark mode:

        news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg))
        news.ycombinator.com##body:style(background: white)
        news.ycombinator.com##div.toptext:style(color: black)
  • by CloudRecondite on 10/31/22, 9:34 PM

    Delete the app and stop buying the cars while you’re at it
  • by johnea on 10/31/22, 11:13 PM

    Switch to viewing HN on the libera IRC network in ##hntop! Then you can write IRC scripts to filter/process the posts in any way you want...
  • by karaterobot on 10/31/22, 10:31 PM

    This is great, thanks!
  • by ReflectedImage on 10/31/22, 10:46 PM

    Wouldn't that hide this post? :p