Remove New Year Hats

Удаляет элементы с новогодними шапками

目前為 2024-12-16 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Remove New Year Hats
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Удаляет элементы с новогодними шапками
// @author       ya
// @license      MIT
// @match        https://lolz.live/*
// @match        https://lolz.guru/*
// @match        https://zelenka.guru/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function removeNewYearHats() {
        const hats = document.querySelectorAll('.newyearhat, .new_year_hat_2025');
        hats.forEach(hat => {
            hat.remove();
        });
    }

    window.addEventListener('load', removeNewYearHats);

    const observer = new MutationObserver(removeNewYearHats);
    observer.observe(document.body, { childList: true, subtree: true });

    setInterval(removeNewYearHats, 20);
})();

QingJ © 2025

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