raingart / Nova-YouTube-extension

Apache License 2.0
213 stars 11 forks source link

[Feature] Better Comment Sorting #37

Closed Coldblackice closed 1 year ago

Coldblackice commented 1 year ago

A function for comment-sorting (better than Youtube's sorting) would be phenomenal.

Namely, the ability to sort all comments by:

The two most useful sortings would be by most-upvotes and newest vs. oldest.

Currently, Youtube's comment-sorting is algorithmically selective, Youtube choosing from a pool of comments to present as "Top Comments". Even then, Youtube doesn't sort them in proper order. Even worse, you're not actually seeing the highest upvoted comments of all, but rather, Youtube's "digest" of picked recent comments with upvotes.

It would be great to be able to see an absolute scale of comment sorting from highest-to-lowest across all comments.

raingart commented 1 year ago

I'll think about it. But I doubt it. Since the Youtube API has a limit on the number of calls per unit of time

Coldblackice commented 1 year ago

Makes sense. Even just 1-2 extra "Load more"s (then sorted), would be useful. Just an idea.

raingart commented 1 year ago

Test version (extension). This is an example of the functionality that will be available Loads only the top 100 (by Google comment versions) possible by date but not yet implemented

nova-extensions_v1.34.0.zip

Here is the full list of available data in the comment

{
      "snippet": {
         "videoId": "aabbcc11",
         "textDisplay": "text",
         "textOriginal": "text",
         "authorDisplayName": "user A",
         "authorProfileImageUrl": "https://yt3.ggpht.com/ytc/..",
         "authorChannelUrl": "http://www.youtube.com/channel/UC1..",
         "authorChannelId": { "value": "UC.." },
         "canRate": true,
         "viewerRating": "none",
         "likeCount": 5,
         "publishedAt": "2022-01-01T01:23:00Z",
         "updatedAt": "2022-01-01T01:23:00Z"
      },
   "canReply": true,
   "totalReplyCount": 7,
   "isPublic": true
}

p.s. may need your api key

raingart commented 1 year ago

Here is the pre-release version. nova-extensions_v1.34.0.zip

Missing reply view totaly. But the left link to the comment.