Comment

Comment by nick_g

I'm not aware of one, but if you can insert custom css rules it should be simple with something like

    tbody tr.athing:has(.title .titleline a[href*="twitter.com"]),
    tbody tr.athing:has(.title .titleline a[href*="twitter.com"]) + tr,
    tbody tr.athing:has(.title .titleline a[href\*="twitter.com"]) + tr + tr
    {
        display: none;
    }
This selects for any `tr` which has an anchor to a url with twitter.com somewhere in it (with some layers in between) and the two `tr` which follow. Note that this is pretty naive and could have some false positives with links such as https://example.com/blog/a-post-about-twitter.com and such, you could be more careful with the attribute selector if you'd like

This will leave "holes" in the numbering of the list of items as the numbers are not calculated based on the structure of the document but are rather hardcoded. You could definitely fix this with some more funky css rules if needed.

parent nick_g 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton