您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
隐藏国际版csp素材商店已下载的素材|Hide clip-studio assets purchased materials
// ==UserScript== // @name 隐藏国际版csp素材商店已下载的素材 // @namespace https://github.com/asteltis/Hide-clip-studio-assets-purchased-materials // @version 0.1 // @description 隐藏国际版csp素材商店已下载的素材|Hide clip-studio assets purchased materials // @author asteltis // @match https://assets.clip-studio.com/* // @grant none // @license GPL-3.0 // @supportURL https://github.com/asteltis/Hide-clip-studio-assets-purchased-materials/issues // ==/UserScript== (function() { 'use strict'; // 用于隐藏已购买的材料卡片 const hidePurchasedCards = () => { const cardPanel = document.querySelector('.layput__cardPanel'); if (!cardPanel) return; const materialCards = cardPanel.querySelectorAll('.materialCard'); materialCards.forEach(card => { const isPurchased = card.querySelector('.fa-check-circle'); if (isPurchased) { card.style.display = 'none'; } }); }; const observerCallback = mutations => { const cardPanel = document.querySelector('.layput__cardPanel'); if (!cardPanel) return; mutations.forEach(mutation => { if (mutation.type === 'childList') { hidePurchasedCards(); } }); }; const observer = new MutationObserver(observerCallback); window.addEventListener('load', () => { const cardPanel = document.querySelector('.layput__cardPanel'); if (cardPanel) { observer.observe(cardPanel, { childList: true, subtree: true }); hidePurchasedCards(); } }); })();