您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Resize card list and add margin
当前为
// ==UserScript== // @name Coomer Card Resize // @namespace Violentmonkey Scripts // @match https://coomer.su/* // @version 1.1 // @author - // @description Resize card list and add margin // @grant none // ==/UserScript== (function () { "use strict"; function updateCardSize() { const cardList = document.querySelector(".card-list__items"); if (cardList) { cardList.style.setProperty("--card-size", "400px"); cardList.style.gap = "3.3em"; // Adds space between the images console.log("Card size and margin updated!"); } else { console.log("Element not found, retrying..."); setTimeout(updateCardSize, 500); // Retry after 500ms in case content loads dynamically } } updateCardSize(); })();