mirror of
https://github.com/jesperh1/Return-Invidious-Dislike-Count.git
synced 2025-06-07 20:08:50 +01:00
Add ratio back
This commit is contained in:
parent
ab995a45ff
commit
af9d15f4b6
@ -24,5 +24,6 @@ GM.xmlHttpRequest({
|
||||
onload: function(response) {
|
||||
var data = JSON.parse(response.responseText);
|
||||
document.getElementById("dislikes").innerHTML = "<i class='icon ion-ios-thumbs-down'></i> " + data.dislikes.toLocaleString('en-US');
|
||||
document.getElementById("rating").innerHTML = "Rating: " + Math.round(data.rating * 10) / 10 + " / 5";
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user