您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
查卡的时候舒服点
// ==UserScript== // @name 百鸽暗黑模式 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 查卡的时候舒服点 // @license MIT // @author ElapseRecall // @match https://ygocdb.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=ygocdb.com // @grant none // ==/UserScript== (function () { "use strict"; document.body.style.fontFamily = "HarmonyOs Sans SC"; document.body.style.backgroundColor = "#22272E"; document.body.style.color = "#c5d1de"; document.querySelector("#searchbar").style.backgroundColor = "#22272E"; document.querySelectorAll(".qabox").forEach((element) => { element.style.backgroundColor = "#22272E"; }); function processElements() { document.querySelectorAll('div.desc[lang="zh-Hans"]').forEach(function (element) { if (element.classList.contains("overflowed")) { element.classList.remove("overflowed"); } element.classList.add("expanded"); }); } processElements(); const observer = new MutationObserver((mutationsList) => { for (const mutation of mutationsList) { if (mutation.type === "childList") { processElements(); } } }); observer.observe(document.body, { childList: true, subtree: true }); })();