您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Wraps CivitAI versions into multiple rows.
当前为
// ==UserScript== // @name Civitai Model Versions Wraparound // @version 0.1.0 // @description Wraps CivitAI versions into multiple rows. // @author RedTvpe // @match https://civitai.com/models/* // @grant none // @namespace https://gf.qytechs.cn/users/1418032 // ==/UserScript== (function () { 'use strict'; function adjustLayout() { // Select the container that holds the model versions const scrollArea = document.querySelector('.mantine-ScrollArea-viewport .mantine-Group-root'); if (scrollArea) { // Apply styles to make the versions wrap into rows scrollArea.style.display = 'flex'; scrollArea.style.flexWrap = 'wrap'; scrollArea.style.gap = '8px'; // Adds spacing between items scrollArea.style.overflowX = 'visible'; // Allow full visibility } } // Use MutationObserver to watch for dynamic content changes const observer = new MutationObserver((mutations) => { for (const mutation of mutations) { if (mutation.addedNodes.length > 0) { adjustLayout(); } } }); // Observe the main container for changes const targetNode = document.querySelector('body'); const config = { childList: true, subtree: true }; observer.observe(targetNode, config); // Apply the layout fix initially adjustLayout(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址