Lolz.live - Remove uniqUsernameIcon

Удаляет все элементы с классом uniqUsernameIcon на lolz.live

目前為 2025-04-07 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Lolz.live - Remove uniqUsernameIcon
// @namespace    https://github.com/YourName
// @version      1.1
// @description  Удаляет все элементы с классом uniqUsernameIcon на lolz.live
// @author       eretly
// @match        https://lolz.live/*
// @grant        none
// @license      MIT
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    const fastDelete = () => {
        const icons = document.querySelectorAll('.uniqUsernameIcon');
        if (icons.length > 0) {
            icons.forEach(el => el.remove());
            console.log('[Lolz Cleaner] Удалено элементов:', icons.length);
        }
    };

    fastDelete();
    const interval = setInterval(fastDelete, 100);

    const observer = new MutationObserver((mutations) => {
        fastDelete();
    });

    observer.observe(document, {
        childList: true,
        subtree: true,
        attributes: false,
        characterData: false
    });

    window.addEventListener('load', () => {
        clearInterval(interval);
        fastDelete();
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址