您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows favorited anime,manga,characters,people,company count like "Favorite - Anime (10)" on mobile version
当前为
// ==UserScript== // @name Show favorited anime, manga etc.. count like in PC ver. // @namespace https://myanimelist.net/profile/kyoyatempest // @version 1.1 // @description Shows favorited anime,manga,characters,people,company count like "Favorite - Anime (10)" on mobile version // @author kyoyacchi // @match https://myanimelist.net/profile/* // @grant none // @icon https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://myanimelist.net&size=64 // @run-at document-end // @license gpl-3.0 // ==/UserScript== (function() { 'use strict'; let anime, manga, characters, people, company; anime = document.querySelectorAll(".slider.favorites-anime").length manga= document.querySelectorAll(".slider.favorites-manga").length; characters = document.querySelectorAll(".slider.favorites-character").length; people = document.querySelectorAll(".slider.favorites-person").length; company = document.querySelectorAll(".slider.favorites-company").length; let aniheader, mangaheader, charactersheader, peopleheader, companyheader; const headers = document.querySelectorAll(".header3"); headers.forEach((el) => { if (el.textContent === "Favorites - Anime") { aniheader = el; } if (el.textContent === "Favorites - Manga"){ mangaheader = el; } if (el.textContent === "Favorites - Characters"){ charactersheader = el; } if (el.textContent === "Favorites - People"){ peopleheader = el; } if (el.textContent === "Favorites - Companies"){ companyheader = el; } }); if (aniheader){ aniheader.textContent += ` (${anime})`; } if (mangaheader){mangaheader.textContent += ` (${manga})` } if (charactersheader){charactersheader.textContent += ` (${characters})` } if (peopleheader){ peopleheader.textContent += ` (${people})` } if (companyheader){companyheader.textContent += ` (${company})` } })();