by bazzargh · 2y ago · 0 comments
news.ycombinator.com##tr.athing:has(a[href^="from?site=twitter.com"])
news.ycombinator.com##tr.athing:has(a[href^="from?site=twitter.com"])+tr
news.ycombinator.com##tr.athing:has(a[href^="from?site=x.com"])
news.ycombinator.com##tr.athing:has(a[href^="from?site=x.com"])+tr
news.ycombinator.com##tr.athing:has(a[href^="from?site=medium.com"])
news.ycombinator.com##tr.athing:has(a[href^="from?site=medium.com"])+tr
2 rules each because the replies and the story titles don't share a common parent element. eg right now I can tell from the numbers beside the stories that number 23 is missing; but otherwise HN looks the same. The same trick works for google search results; I have rules like the ones below to block less useful tutorial sites when I'm looking for python/js docs: google.com##div:has(>div>div>span>a[href^="https://www.w3schools"])
google.com##div:has(>div>div>span>a[href^="https://www.geeksforgeeks"])
google.com##div:has(>div>div>span>a[href^="https://realpython.com"])
google.com##div:has(>div>div>span>a[href^="https://www.programiz"])
google.com##div:has(>div>div>span>a[href^="https://www.datacamp"])
Hope this helps folk too; I'm not going to fight a battle over links to these sites (and others I've blocked), I'm just trying to improve my own experience of the site.