3 ms·
For reddit, this is massively easier to implement, as each comment contains in markup an accurate timestamp. That way the script only has to store the timestam
by kuschku 5y ago
For reddit, this is massively easier to implement, as each comment contains in markup an accurate timestamp.
That way the script only has to store the timestamps on which you visit a comment section, not the comment ids.
Additionally, that way you can select "highlight all comments since visit [...]" with a dropdown from which you can choose out of all recent visits you did.
Sadly, Hacker News does not provide any such metadata in the markup. (Just like the comment formatting is shit, and the markup structure is as well. HN should just copy the nesting markup and formatting 1:1 from reddit, and it'd be massively improved already).
- linkdd 5y agoBut it would break the workflow of so many people relying on that shitty structure! https://xkcd.com/1172/ https://xkcd.com/1172/ I like the fact that HN is so "stable".
- jraph 5y agoHN is so "table", I'd say.
- kogir 5y agoComment item ids are sequential (unless that’s changed since I last looked). You can perform relative ordering operations using them just like you could dates.
- sorenjan 5y agoNext to your comment there's a timestamp for when it was posted, with the title "2021-09-15T14:18:16". This is available for all comments as far as I can see. In what way is this inaccurate?
- kuschku 5y agoI actually ended up writing an HN backend for my comment highlight user script I described earlier, here’s the HN version: https://gist.github.com/justjanne/e61fcc9edb7d3dc60bc1a788d0329a0e https://gist.github.com/justjanne/e61fcc9edb7d3dc60bc1a788d0...