Hacker News new | ask | show | jobs
by yourduskquibble 2622 days ago
> NYTimes is the main reason I've been on the search for some kind of feature for HN (addon? greasemonkey script? ANYTHING) to auto-hide articles based on domain or title matches. Does anyone have a solution?

You'll leave an orphaned article info table row with this approach but you can hide the article row itself with uBlock Origin procedural filters[1].

Add the following to 'My Filters':

news.ycombinator.com##table tr tr:has([href*="nytimes.com"])

[1] https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-f...

1 comments

This is pretty nifty! I never considered uBlock's cosmetic filters (nor looked into how they might be implemented actually). TIL!