您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove APP bot tags from Discord messages
// ==UserScript== // @name Discord Remove APP Bot Tag // @namespace http://tampermonkey.net/ // @version 1.0 // @description Remove APP bot tags from Discord messages // @author You // @match https://discord.com/channels/* // @match https://discordapp.com/channels/* // @grant none // @run-at document-start // @license MIT // ==/UserScript== (function() { 'use strict'; // Function to hide bot tags function hideBotTags() { // Target the bot tag elements const botTags = document.querySelectorAll('.botTagCozy_c19a55, .botTag_c19a55, .botTagRegular__82f07, .botTag__82f07'); botTags.forEach(tag => { if (tag.textContent.includes('APP') || tag.textContent.includes('BOT')) { tag.style.display = 'none'; } }); } // Run initially setTimeout(hideBotTags, 1000); // Create observer for dynamic content const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { if (mutation.addedNodes.length > 0) { hideBotTags(); } }); }); // Start observing when page loads window.addEventListener('load', () => { observer.observe(document.body, { childList: true, subtree: true }); hideBotTags(); }); // Also run periodically as a fallback setInterval(hideBotTags, 2000); })();