HN: style unread content

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

Autor
myf
Dnevne instalacije
0
Ukupno instalacija
13
Ocene
0 0 0
Verzija
1.1.3
Napravljeno
25/03/2021
Ažurirano
31/10/2024
Size
7,09 КБ
Licenca
Nije dostupno
Važi za

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.

长期地址
遇到问题?请前往 GitHub 提 Issues。