elliotwaite / thumbnail-rating-bar-for-youtube

A Chrome and Firefox extension for YouTube that adds a rating bar (likes/dislikes ratio) to the bottom of every thumbnail.
https://chrome.google.com/webstore/detail/youtube-thumbnail-rating/cmlddjbnoehmihdmfhaacemlpgfbpoeb
MIT License
249 stars 15 forks source link

Feature Request - Score #5

Closed Agarwal-Nikhil closed 1 year ago

Agarwal-Nikhil commented 6 years ago

Hey, I tried this as the other extension stopped working. I like your extension, just that the score is missing. The score is useful as it shows rating with respect to total no. of views.

elliotwaite commented 6 years ago

Thanks for the feature request. I am not sure yet if I am going to add a similar score function to this extension, but if there is enough interest I probably will. So far you are the second person who has mentioned to me that'd you'd like this feature added.

I never used the score feature with the other extension, but I saw that it would put the score as a percentage number in the bottom left of the thumbnail, which is also where the "WATCHED" tag goes after you've watched a video when you have your view history turned on. Do you know how the other extension dealt with this? Did it move the "WATCHED" tag to the top of the thumbnail, or hide it or something?

I was also thinking, maybe instead of a numerical score in the bottom left corner, maybe it could be a vertical bar on the left of the thumbnail, similar to the rating bar. What do you think about this idea?

Agarwal-Nikhil commented 6 years ago

Hi, I don't see the 'watched tag', even when I disable all my extensions. Even though the extensions that I mentioned is working now, I would still don't want to use it as it is closed source. But you could see how it works.

The score gives a higher confidence to the viewer that the video was found to be useful to at the least certain threshold number of people (set by the programmer). So, it is more likely to have higher quality.

For example the following video has low dislike to like ratio (about 3%), but the total no. of likes (about 100) is lower than the threshold so the Rating Score is less. image

But, the following video has higher dislike to like ratio (about 10%) but total no. of like (about 200) is closer to the threshold than the previous, so has higher Score. image

SwiftWinds commented 4 years ago

Why was this issue closed? AFAIK, this issue has not yet been shipped. Could it be reopened? I am also interested in this feature

SwiftWinds commented 4 years ago

If it's helpful, I looked through the Ratings Preview for YouTube code, and I found the function that calculates the RP score:

// Computes the total score of a video based on an intelligent algorithm
function totalScore(views, likes, dislikes) {
  var votes = likes + dislikes;

  if (votes > 0 && views > 0) {
    var likesScore =
      (likes / votes) *
        Math.min(
          log(
            Math.pow(10, 2),
            ((Math.pow(10, 2) - 1) * votes) / Math.pow(10, 3) + 1
          ),
          1
        ) +
      0.5 *
        (1 -
          Math.min(
            log(
              Math.pow(10, 2),
              ((Math.pow(10, 2) - 1) * votes) / Math.pow(10, 3) + 1
            ),
            1
          )); // [0, 1]

    var viewsScore = Math.min(
      log(
        Math.pow(10, 6),
        ((Math.pow(10, 6) - 1) * views) / Math.pow(10, 9) + 1
      ),
      1
    ); // [0, 1]

    var votesScore =
      1 -
      Math.min(
        log(
          Math.pow(10, 2 / 3),
          ((Math.pow(10, 2 / 3) - 1) * votes * 100) / views / Math.pow(10, 1) +
            1
        ),
        1
      ); // [0, 1]

    var totalRawScore = likesScore * 0.8 + viewsScore * 0.1 + votesScore * 0.1; // [0, 1]

    var totalNetScore = Math.min(Math.max(10.8 * totalRawScore - 0.4, 0), 10); // [-0.4, 10.4] truncated to [0, 10]

    return totalNetScore;
  } else {
    return 5;
  }
}
elliotwaite commented 4 years ago

I'm not sure why this issue was closed. I'll reopen it.

I currently only want to invest the time to maintain the current set of features, so I currently won't be working on adding this feature myself. But you are welcome to fork this repo and add that feature or submit a pull request.

SwiftWinds commented 4 years ago

Sure, I'll look into PRing this sometime this week. :) Would adding the number in the video duration be fine, or do you think it'd best be a number in the bar itself or maybe something completely different?

elliotwaite commented 4 years ago

I think my first preference would be to display it on the bottom left of the thumbnail, on the opposite side of the duration. What do you think would look best?

SwiftWinds commented 4 years ago

I never even thought of that; I think that'd be a good use of thumbnail space. It sounds a bit harder but I'll try it out.

lamyergeier commented 2 years ago

May be ratings can be assigned as mentioned here:

elliotwaite commented 2 years ago

@anishmittal2020, thanks for the suggestion. A score like that could be interesting.