You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: userscripts/src/pmdf6nr9.user.js
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
// ==UserScript==
2
2
// @name Trakt.tv | Charts - Ratings Distribution
3
-
// @descriptionEmbeds the ratings distribution chart of a title (from its /stats page) on the title summary page. Also allows for rating the title by clicking on the bars.
4
-
// @version 1.0.2
3
+
// @descriptionAdds a ratings distribution (number of users who rated a title 1/10, 2/10 etc.) chart to title summary pages. Also allows for rating the title by clicking on the bars of the chart.
- The installation of the [Trakt.tv | Trakt API Module](f785bub0.md) userscript is optional, as there is a (slower) scraping-based fallback, but very much recommended.
21
+
*/
22
+
17
23
18
24
/* global Chart */
19
25
@@ -68,6 +74,13 @@ async function getRatingsData(statsPath) {
if(ratingsData.distribution.length===11){// bg logging of titles with malformed (length = 11, [0] === 1 or more, only movs/shows no seasons/eps) ratings distribution data e.g. /shows/chainsaw-man/stats
0 commit comments