您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
fix Lobe theme broken webui v1.6.0RC
// ==UserScript== // @name A1111 WebUI fix lobe theme // @namespace http://tampermonkey.net/ // @version 0.2 // @description fix Lobe theme broken webui v1.6.0RC // @author SLAPaper // @match http*://localhost:7860/* // @icon https://www.google.com/s2/favicons?sz=64&domain=undefined.localhost // @grant none // ==/UserScript== function waitForElm(selector) { return new Promise(resolve => { if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } const observer = new MutationObserver(mutations => { if (document.querySelector(selector)) { observer.disconnect(); resolve(document.querySelector(selector)); } }); observer.observe(document.body, { childList: true, subtree: true }); }); } function patchDOM() { waitForElm('#txt2img_settings').then((elm) => { elm.parentElement.style.removeProperty("display"); }); waitForElm('#img2img_settings').then((elm) => { elm.parentElement.style.removeProperty("display"); }); waitForElm('#quicksettings').then((elm) => { elm.style.setProperty("flex-direction", "unset"); }); } (function() { 'use strict'; // Your code here... setInterval(patchDOM, 5000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址