您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove chat avatars
// ==UserScript== // @name Remove Chat Avatars on fishtank.live // @namespace http://tampermonkey.net/ // @version 0.1 // @description Remove chat avatars // @author Blungs // @match https://*.fishtank.live/* // @icon https://www.google.com/s2/favicons?sz=64&domain=fishtank.live // @license MIT // @grant none // @run-at document-idle // ==/UserScript== (function() { 'use strict'; // Function to remove avatar elements function removeAvatars() { const avatars = document.querySelectorAll('.chat-message-default_avatar__eVmdi'); avatars.forEach(avatar => avatar.remove()); } // Run the function initially in case some avatars are already present removeAvatars(); // Set up a MutationObserver to detect new avatars added dynamically const observer = new MutationObserver(removeAvatars); // Observe changes to the document body for dynamically added elements observer.observe(document.body, { childList: true, subtree: true }); })();