您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the new emote bar on the right of messages that was added on 2/3/20.
// ==UserScript== // @name Remove Emote Sidebar // @namespace http://tampermonkey.net/ // @version 0.1 // @description Removes the new emote bar on the right of messages that was added on 2/3/20. // @author eM-Krow/Stop! You violated the law! // @match https://discordapp.com/channels/* // @grant none // ==/UserScript== const channelNode = document.getElementsByClassName("chat-3bRxxu")[0]; const serverNode = document.getElementsByClassName("content-98HsJk")[0]; const config = {attributes: true, childList: true, subtree: true}; const callback = (mutationsList, observer) => { for (let mutation of mutationsList) { if (mutation.type === "childList") { $(".buttonContainer-DHceWr").remove(); } else if (mutation.type === "attributes") { $(".buttonContainer-DHceWr").remove(); } } }; const channelObserver = new MutationObserver(callback); const serverObserver = new MutationObserver(callback); setTimeout(channelObserver.observe(channelNode, config), 1000); setTimeout(serverObserver.observe(serverNode, config), 1000);