// ==UserScript== // @name Полное удаление полосы загрузки lolz.live // @namespace [URL]http://tampermonkey.net/[/URL] // @version 2.0 // @description Полностью отключает JS-функцию, создающую полосу загрузки при AJAX-запросах (например, при лайках). // @author You // @match [URL]https://lolz.live/*[/URL] // @run-at document-start // @grant unsafeWindow // ==/UserScript== (function() { 'use strict'; const addCssHider = () => { const style = document.createElement('style'); style.textContent = ` .progress-bar.lztng-1gz3dko, .spinner-bar.lztng-1gz3dko { display: none !important; } `; (document.head || document.documentElement).appendChild(style); }; addCssHider(); const interval = setInterval(() => { if (typeof unsafeWindow.XenForo !== 'undefined' && typeof unsafeWindow.XenForo.AjaxProgress === 'function') { clearInterval(interval); unsafeWindow.XenForo.AjaxProgress = function() { console.log('Tampermonkey: Функция полосы загрузки (XenForo.AjaxProgress) была успешно отключена.'); }; } }, 50); })(); Code // ==UserScript== // @name Полное удаление полосы загрузки lolz.live // @namespace [URL]http://tampermonkey.net/[/URL] // @version 2.0 // @description Полностью отключает JS-функцию, создающую полосу загрузки при AJAX-запросах (например, при лайках). // @author You // @match [URL]https://lolz.live/*[/URL] // @run-at document-start // @grant unsafeWindow // ==/UserScript== (function() { 'use strict'; const addCssHider = () => { const style = document.createElement('style'); style.textContent = ` .progress-bar.lztng-1gz3dko, .spinner-bar.lztng-1gz3dko { display: none !important; } `; (document.head || document.documentElement).appendChild(style); }; addCssHider(); const interval = setInterval(() => { if (typeof unsafeWindow.XenForo !== 'undefined' && typeof unsafeWindow.XenForo.AjaxProgress === 'function') { clearInterval(interval); unsafeWindow.XenForo.AjaxProgress = function() { console.log('Tampermonkey: Функция полосы загрузки (XenForo.AjaxProgress) была успешно отключена.'); }; } }, 50); })();