您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
adds anilist links to mal
当前为
// ==UserScript== // @name Anilist links on MAL // @namespace https://github.com/Alistair1231/my-userscripts/ // @version 0.3 // @description adds anilist links to mal // @author Alistair1231 // @match https://myanimelist.net/anime/* // @match https://www.google.com/url?q=* // @icon https://icons.duckduckgo.com/ip2/myanimelist.net.ico // @license GPL-3.0 // ==/UserScript== function createButton(href, icon, textContent) { var link = document.createElement("a"); link.href = href; link.target = "_blank"; link.className = "link ga-click"; var img = document.createElement("img"); img.src = icon; img.className = "link_icon"; img.alt = "icon"; link.appendChild(img); var div = document.createElement("div"); div.className = "caption"; div.textContent = textContent; link.appendChild(div); return link; } (function (window, undefined) { var anilistLink = `https://duckduckgo.com/?q=!anilist+${document.querySelector(".title-name.h1_bold_none strong").innerHTML}`; var livechartLink = `https://duckduckgo.com/?q=!livec+${document.querySelector(".title-name.h1_bold_none strong").innerHTML}`; // array from all div.external_links -> get the last one -> get the first child -> add the button before that [...document.querySelectorAll("div.external_links")].splice(-1)[0].firstChild.before( createButton(anilistLink, "https://icons.duckduckgo.com/ip2/anilist.co.ico", "Anilist"), createButton(livechartLink, "https://icons.duckduckgo.com/ip2/livechart.me.ico", "livechart.me") ); // code to automatically redirect to the google search result document.querySelector("body>div>div>font>b").innerHTML=="Redirect Notice" && document.querySelector("body>div>a").click(); })(window);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址