Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: How to ommit downvoted comments in HN?
3 points by htk 5 months ago | hide | past | web | favorite | 2 comments
As most people here know, HN discussions are often a great source of knowledge and insight on various subjects, and I usually dump the large ones (100+ comments) on the Voice Dream Reader app in my phone (I have no affiliation with them) and listen to them while commuting, etc.

I'm searching for ways to hide/remove the downvoted comments (grayed out) and their children before sending to VDR.

At first I thought about creating a scriptlet, but looking at the html the nesting is done via styling instead of structured in the html, complicating the hiding of children messages.

When I tried the API it doesn't expose the "grayness" of comments.

Anyone here knows/has a solution to this?

Gray comments have {"dead": true} in their item info. You probably also want to omit items with {"deleted": true}.

Example: https://hacker-news.firebaseio.com/v0/item/18195247.json is a grayed comment at the bottom of https://news.ycombinator.com/item?id=18194586.

This would be perfect, but unfortunately doesn't seem to work on most downvoted comments (negative scored), for example:


This comment is light gray, but doesn't return anything different in this API from a regular (positive scored) comment.

Applications are open for YC Summer 2019

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