您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows the total episodes average score on any anime entries on MAL.
// ==UserScript== // @name Episodes Average Score - MAL // @namespace AverageEPScore // @version 1 // @description Shows the total episodes average score on any anime entries on MAL. // @author hacker09 // @match https://myanimelist.net/*/*/*/episode // @icon https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://myanimelist.net&size=64 // @run-at document-end // @grant none // ==/UserScript== (function() { 'use strict'; document.querySelector(".episode-title").innerText += ' (Total episodes average score ' + ([...document.querySelectorAll("span.value")].map(row => row.innerText).filter(Boolean).map(i => Number(i)).reduce((a, b) => a + b) / [...document.querySelectorAll("span.value")].map(row => row.innerText).length).toFixed(2) + ') (' + (([...document.querySelectorAll("span.value")].map(row => row.innerText).filter(Boolean).map(i => Number(i)).reduce((a, b) => a + b) / [...document.querySelectorAll("span.value")].map(row => row.innerText).length) * 100 / 5).toFixed(2) + '%)'; //Show the Average Score results })();