3 ms·
Could this be modified to block comments from a list of usernames too? The last time I looked at HN’s DOM made me sad. There are some prolific users who… while
by abtinf 3y ago
Could this be modified to block comments from a list of usernames too? The last time I looked at HN’s DOM made me sad.
There are some prolific users who… while their comments are of normal quality, trigger a strong desire for me to respond. I’d rather simply not see their comments (and reply trees) at all.
- kreeben 3y agoPersonally, I never reply. I only lurk. Because every time I reply I get sucked into the social media nightmare that is waiting for a response to my reply. So I opt out of that by never, ever replying, no matter how big the urge is to reply. I never do it. Almost never. 99.99% of the time, I skip replying. I think you might lack a discipline.
- developer93 3y agoDunno but at least on Glider client, you can block from the username menu.
- LAC-Tech 3y agoconst boringPeople = [/* omitted */] Array.from(document.querySelectorAll('.hnuser')) .filter(elem => boringPeople.some(person => elem.textContent === person)) .map(elem => elem.parentElement.parentElement.parentElement.parentElement) .forEach(elem => elem.remove()) This worked to block the actual comment but not the whole thread.
- insin 3y agoComments Owl for Hacker News [1] adds a mute control to comments and user profiles which lets you do this. If you want to roll a quick version of your own, once you've identified rows containing comments you want to block, you need to hide all subsequent rows which have a higher indent. I see there's now an "indent" attribute in the DOM which would make this even easier. [1] https://github.com/insin/comments-owl-for-hacker-news#comments-owl-for-hacker-news https://github.com/insin/comments-owl-for-hacker-news#commen...