您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
232
// ==UserScript== // @name kolvo-zablokirovannuh // @namespace http://tampermonkey.net/ // @version 1.1 // @description 232 // @author ChatGPT , aff // @match *https://zelenka.guru/account/ignored* // @match *https://lolz.live/account/ignored* // @grant GM_addStyle // @license MIT // ==/UserScript== (function () { 'use strict'; const currentUrl = window.location.href; if (currentUrl !== 'https://zelenka.guru/account/ignored' && currentUrl !== 'https://lolz.live/account/ignored') { return; } const countIgnoredMembers = () => { const ignoredMembers = document.querySelectorAll('.member-list_ignored'); const ignoredCount = ignoredMembers.length; const submitUnitElement = document.querySelector('.ctrlUnit.submitUnit'); if (!submitUnitElement) { console.warn('Элемент с классом "ctrlUnit submitUnit" не найден.'); return; } let countDisplay = submitUnitElement.querySelector('#ignored-count'); if (!countDisplay) { countDisplay = document.createElement('div'); countDisplay.id = 'ignored-count'; countDisplay.style.fontSize = '13px'; countDisplay.style.color = 'rgb(214, 214, 214)'; countDisplay.style.textDecoration = 'none'; countDisplay.style.backgroundColor = 'rgb(34, 142, 93)'; countDisplay.style.padding = '0px 15px'; countDisplay.style.borderStyle = 'none'; countDisplay.style.borderRadius = '6px'; countDisplay.style.userSelect = 'none'; countDisplay.style.fontStyle = 'normal'; countDisplay.style.textAlign = 'center'; countDisplay.style.lineHeight = '34px'; countDisplay.style.display = 'inline-block'; countDisplay.style.cursor = 'default'; countDisplay.style.boxSizing = 'border-box'; countDisplay.style.fontWeight = '600'; countDisplay.style.transition = 'background 0.8s'; countDisplay.style.height = '34px'; countDisplay.style.marginTop = '4px'; submitUnitElement.appendChild(countDisplay); } countDisplay.textContent = `Заблокированные: ${ignoredCount}`; }; let timeout; const debounce = (fn, delay) => { clearTimeout(timeout); timeout = setTimeout(fn, delay); }; countIgnoredMembers(); const observer = new MutationObserver(() => { debounce(countIgnoredMembers, 100); }); observer.observe(document.body, { childList: true, subtree: true, }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址