您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically collapse the sidebar on page load
// ==UserScript== // @name bots 隐藏左侧边栏 // @namespace http://tampermonkey.net/ // @version 0.1 // @description Automatically collapse the sidebar on page load // @match https://www.coze.com/store/bot/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // 等待侧边栏元素加载 const observer = new MutationObserver(function(mutations, me) { const sidebar = document.querySelector('.nXcwv8nm1GoEIrwhPbSP'); if (sidebar) { // 改变侧边栏的样式 sidebar.style.width = '0'; sidebar.style.overflow = 'hidden'; sidebar.style.padding = '0'; sidebar.style.transition = 'width 0.3s ease'; // 停止观察 me.disconnect(); return; } }); // 开始观察文档 observer.observe(document, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址