3 ms·
You can use uBlock Origin for this! Go to My Filters, and add: news.ycombinator.com##a[href*="UNWANTED.DOMAIN.COM"]:upward(3) news.ycombinator.com##a[href
by kazinator 3y ago
You can use uBlock Origin for this!
Go to My Filters, and add:
news.ycombinator.com##a[href*="UNWANTED.DOMAIN.COM"]:upward(3)
news.ycombinator.com##a[href*="UNWANTED.DOMAIN.COM"]:upward(3) + tr
Maybe someone can come up with a better solution, avoiding the hacky upward selection and avoiding repetition of the domain match.
The idea here is that we match an <a> element whose href contains the unwanted domain. Then upward(3) selects the great-grandparent element: we are assuming that the <a> is buried three levels within a <tr> element, and we nuke that <tr> element.
Even if a nicer rule is found, it's still not great UX to have to go into the filter panel and copy-paste rules.
Then we repeat the entire rule and add "+ tr" to nuke the successor also. The successor row has the small print: the story's points, who submitted it, number of comments, flag/hide buttons.