GitHub Sort Reactions

A userscript that sorts comments by reaction

2018/02/11のページです。最新版はこちら

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Mottie
評価
0 0 0
バージョン
0.1.0
作成日
2018/02/11
更新日
2018/02/11
大きさ
7.9KB
ライセンス
MIT
対象サイト

A userscript that sorts comments by reaction

  • The userscript adds a block of buttons under the first post.
    • Clicking on a reaction button will sort the comments by the selected reaction: "+1", "-1", "laugh", "hooray", "confused" and "heart".
    • One extra button is included (speak no evil ? monkey). Clicking it will sort the comments using a calculated value based on all reactions for that comment.
    • The first click applies a descending sort, the second an ascending sort and the third click restores the comment order.
    • Comments without a reaction and comments with the same (calculated) number of reactions will be added depending on its original order (stable sort).
  • Progressively loaded comments:
    • The "load more comments" button will be moved to the top, immediately under the sort block. For easy access.
    • New comments are supposed to be included in the sort, but you may need to resort the column anyway. I'll troubleshoot the mutations script and fix this soon.

sort-reaction-block

github-sort-reactions

Hosted with ♥ at GitHub