您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides the channel list at the press of a button
当前为
// ==UserScript== // @name Discord Hide Channel List Button // @namespace http://tampermonkey.net/ // @version 0.4 // @description Hides the channel list at the press of a button // @author 20kdc // @match https://discordapp.com/* // @grant none // ==/UserScript== // I release this user-script into the public domain. var mainFunc; var lastTryParent; mainFunc = function() { 'use strict'; // Toolbar instance tends to change setTimeout(mainFunc, 5000); const vChat = document.querySelector(".chat"); if (!vChat) return; const v = vChat.firstChild.firstChild.lastChild; if (lastTryParent == v) return; lastTryParent = v; const d = document.createElement("img"); d.draggable = false; d.src = "/assets/a860a4e9c04e5cc2c8c48ebf51f7ed46.svg"; // Unscalable, but Discord does it too d.width = 24; d.height = 24; v.appendChild(d); var toggleState = true; d.addEventListener("click", () => { const v2a = document.querySelector(".chat"); if (!v2a) return; const v2 = v2a.parentNode.firstChild; toggleState = !toggleState; if (toggleState) { d.class = "active"; v2.style.display = "inherit"; } else { d.class = ""; v2.style.display = "none"; } }); }; mainFunc();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址