// ==UserScript== // @name Hide text_Ads on lolz.live // @namespace http://tampermonkey.net/ // @version 0.1 // @description Hide the text_Ads mn-0-0-15 element on lolz.live // @author Your Name // @match https://lolz.live/* // @grant none // ==/UserScript== (function() { 'use strict'; // Функция для скрытия элемента function hideTextAds() { // Находим элемент с классом "text_Ads mn-0-0-15" const textAdsElement = document.querySelector('.text_Ads.mn-0-0-15'); // Если элемент найден, скрываем его if (textAdsElement) { textAdsElement.style.display = 'none'; } } // Вызываем функцию сразу после загрузки страницы window.addEventListener('load', hideTextAds); // Также можно добавить обработчик для динамически загружаемых элементов const observer = new MutationObserver(hideTextAds); observer.observe(document.body, { childList: true, subtree: true }); })(); Код // ==UserScript== // @name Hide text_Ads on lolz.live // @namespace http://tampermonkey.net/ // @version 0.1 // @description Hide the text_Ads mn-0-0-15 element on lolz.live // @author Your Name // @match https://lolz.live/* // @grant none // ==/UserScript== (function() { 'use strict'; // Функция для скрытия элемента function hideTextAds() { // Находим элемент с классом "text_Ads mn-0-0-15" const textAdsElement = document.querySelector('.text_Ads.mn-0-0-15'); // Если элемент найден, скрываем его if (textAdsElement) { textAdsElement.style.display = 'none'; } } // Вызываем функцию сразу после загрузки страницы window.addEventListener('load', hideTextAds); // Также можно добавить обработчик для динамически загружаемых элементов const observer = new MutationObserver(hideTextAds); observer.observe(document.body, { childList: true, subtree: true }); })();