您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Restore MAL's old rating display
// ==UserScript== // @name MAL Restore Rating // @namespace https://greasyfork.org/en/users/957127-supertouch // @version 0.1 // @description Restore MAL's old rating display // @author SuperTouch // @match https://myanimelist.net/manga/* // @match https://myanimelist.net/anime/* // @match https://myanimelist.net/reviews* // @icon https://cdn.myanimelist.net/images/favicon.ico // @run-at document-end // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function createRatingElement(rating) { let html = `<div class="floatRightHeader"><a href="javascript:void(0);">Overall Rating</a>: ${rating}</div>` let template = document.createElement('template'); html = html.trim(); template.innerHTML = html; return template.content.firstChild; } const reviews = document.querySelectorAll('.review-element'); reviews.forEach((reviewEl) => { const tags = reviewEl.querySelector('.tags'); const rating = reviewEl.querySelector('.rating > .num').textContent; const ratingElement = createRatingElement(rating); tags.appendChild(ratingElement); }) })();