Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I know this one has been fixed, but I also find those an annoyance - more so because if you're not logged in on twitter, you only see the first tweet, not the thread. So rather than get irritated when I click through stories, I block the links on HN with ublock-origin rules like so:

    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.


I do something similar with Google search results. I hide results from Pinterest, Quora, TikTok, ...


I can recommend uBlacklist for that: https://iorate.github.io/ublacklist/docs also supports other search engines




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: