HN: style unread content

Save hashes of displayed comments locally and mark new ones when displayed for the first time

Autor
myf
Installationen heute
0
Installationen gesamt
13
Bewertungen
0 0 0
Version
1.1.3
Erstellt am
25.03.2021
Letzte Aktualisierung
31.10.2024
Lizenz
n/a
Wird angewandt auf

Initial explorative experiment; works but I am not sure about resources cost.

Saves hashes of once displayed items at The Orange Site to localStorage and highlights those displayed for the first time. (Each displayed post link and comment gets 28 bytes long SHA-1 hash when stays in viewport for 900 ms.)

Useful for tracking heavily branched discussion or spot new top post among others.