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

Hacker News

Realest
Joined
Sep 15, 2022
Messages
69,003
Reaction score
14
BC
฿0
Dividends
0
For those who want some relief from the Twitter/Musk drama, here are three cosmetic filters to add to your custom uBlockOrigin / AdGuard rules:

Code:
    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:

Code:
    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



Comments URL: https://news.ycombinator.com/item?id=33412932

Points: 9

# Comments: 3

Continue reading...
 

Users who are viewing this thread

Cookies are required to use this site. You must accept them to continue using the site. Learn more…