Rank HN comments by engagement

Ranks HN comments by number of direct or indirect children, or by custom criteria

Δημιουργός
heartbeats
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
18
Βαθμολογίες
0 0 0
Έκδοση
1
Δημιουργήθηκε την
25/09/2020
Ενημερώθηκε την
25/09/2020
Άδεια
Μη διαθέσιμη
Εφαρμόζεται σε

This script ranks comments on Hacker News by the time since someone last responded to it or a descendant, like in old forums.

It completely ignores votes. If you respond to an old comment, you'll bring the entire tree to the top. If two comment trees are equally old, the following algorithm adapted from https://news.ycombinator.com/item?id=1781417 is used as a tiebreaker:

gravity = 1.8;
timeBase = 120; # 2 hours
return 1.0 / (age_in_minutes + timeBase) ** gravity;

For old threads where all comments are equally old, this converges to "most replies first".

In a future version, the following features may be added:

  • Sort the frontpage by comments/engagement too
  • Automatically upvote comments you respond to