Custom Modifications for Websites

Удаляет новогодние шапки, мамонтов и изменяет иконку

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

// ==UserScript==
// @name         Custom Modifications for Websites
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Удаляет новогодние шапки, мамонтов и изменяет иконку
// @author       Ваше имя
// @license      MIT
// @match        https://lolz.live/*
// @match        https://lolz.guru/*
// @match        https://zelenka.guru/*
// @match        https://lzt.market/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    //удаление новогодних шапок
    function removeNewYearHats() {
        const hats = document.querySelectorAll('.newyearhat, .new_year_hat_2025');
        hats.forEach(hat => {
            hat.remove();
        });
    }

    //убийство мамонтов
    function removeSnowElement() {
        const snowElement = document.querySelector('div[style*="position: absolute; inset: 0px;"]');
        if (snowElement) {
            snowElement.remove();
        }
    }

    //меняет аним лого на дефолт
    const newLogoUrl = 'https://lolz.live/styles/brand/download/logos/LolzTeam-Logo-Green.svg';
    const css = `
        #lzt-logo {
            background-image: url('${newLogoUrl}') !important;
        }
    `;
    GM_addStyle(css);

    window.addEventListener('load', () => {
        removeNewYearHats();
        removeSnowElement();
    });

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

    setInterval(() => {
        removeNewYearHats();
        removeSnowElement();
    }, 20);
})();

QingJ © 2025

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