您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds AniList link to myanimelist anime and manga pages
// ==UserScript== // @name MALtoANI // @namespace Morimasa // @author Morimasa // @description Adds AniList link to myanimelist anime and manga pages // @match https://myanimelist.net/manga/* // @match https://myanimelist.net/anime/* // @grant GM_xmlhttpRequest // @version 1 // ==/UserScript== GM_xmlhttpRequest({ method: "POST", url: "https://graphql.anilist.co", data: JSON.stringify({ query: `query($id:Int,$type:MediaType){ Media(idMal:$id,type:$type){ siteUrl } }`, variables: { "id": window.location.pathname.split("/")[2], "type": window.location.pathname.split("/")[1].toUpperCase() } }), headers: { "Content-Type": "application/json" }, onload: function(response) { var anilistURL=JSON.parse(response.responseText)["data"]["Media"]["siteUrl"] document.getElementById("horiznav_nav").getElementsByTagName("ul")[0].innerHTML+=`<li><a rel="noopener noreferrer" href="${anilistURL}"><img src="https://anilist.co/img/icons/favicon-32x32.png" height=13>AniList</a></li>` } });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址