хз, по приколу сделал заменяет все аватарки на клоуна Скопировать и вставить в tampermonkey // ==UserScript== // @name Lolz.live Avatar Replacer (Full) // @namespace [URL]http://tampermonkey.net/[/URL] // @version 1.2 // @description Заменяет все аватары (img и background-image) на lolz.live на изображение клоуна // @author You // @match [URL]https://lolz.live/*[/URL] // @match [URL]http://lolz.live/*[/URL] // @icon https://www.google.com/s2/favicons?domain=lolz.live // @grant none // ==/UserScript== (function() { 'use strict'; // Вставьте свою ссылку на изображение клоуна между кавычками ниже const clownImageUrl = "https://i.pinimg.com/736x/eb/e5/6a/ebe56af52b6671d9cc48cea9060bc44f.jpg"; function replaceAvatars() { // Обрабатываем обычные img аватары const imgAvatars = document.querySelectorAll(` img[src*="nztcdn.com/avatar"], img.navTab--visitorAvatar, .avatar, [class*="avatar"], [id*="avatar"], .message-userDetails-avatar, .avatarWrapper img `); imgAvatars.forEach(img => { if (img.src !== clownImageUrl) { const originalWidth = img.width || img.getAttribute('width'); const originalHeight = img.height || img.getAttribute('height'); img.src = clownImageUrl; img.style.objectFit = 'cover'; img.style.objectPosition = 'center'; if (originalWidth) img.width = originalWidth; if (originalHeight) img.height = originalHeight; if (img.hasAttribute('srcset')) img.removeAttribute('srcset'); } }); // Обрабатываем элементы с background-image const bgAvatars = document.querySelectorAll(` [style*="background-image"], [class*="avatar"], [id*="avatar"] `); bgAvatars.forEach(el => { const style = window.getComputedStyle(el); if (style.backgroundImage && style.backgroundImage.includes('nztcdn.com/avatar')) { el.style.backgroundImage = `url("${clownImageUrl}")`; el.style.backgroundSize = 'cover'; el.style.backgroundPosition = 'center'; el.style.backgroundRepeat = 'no-repeat'; } }); } // Запускаем сразу после загрузки страницы replaceAvatars(); // Наблюдаем за изменениями DOM const observer = new MutationObserver(function(mutations) { let needsUpdate = false; mutations.forEach(mutation => { if (mutation.addedNodes) { mutation.addedNodes.forEach(node => { if (node.nodeType === 1 && ( node.matches('img, [style*="background-image"], [class*="avatar"], [id*="avatar"]') || node.querySelector('img, [style*="background-image"], [class*="avatar"], [id*="avatar"]') )) { needsUpdate = true; } }); } }); if (needsUpdate) setTimeout(replaceAvatars, 300); }); observer.observe(document.body, { childList: true, subtree: true }); // Также отслеживаем изменения размеров window.addEventListener('resize', replaceAvatars); })(); Код // ==UserScript== // @name Lolz.live Avatar Replacer (Full) // @namespace [URL]http://tampermonkey.net/[/URL] // @version 1.2 // @description Заменяет все аватары (img и background-image) на lolz.live на изображение клоуна // @author You // @match [URL]https://lolz.live/*[/URL] // @match [URL]http://lolz.live/*[/URL] // @icon https://www.google.com/s2/favicons?domain=lolz.live // @grant none // ==/UserScript== (function() { 'use strict'; // Вставьте свою ссылку на изображение клоуна между кавычками ниже const clownImageUrl = "https://i.pinimg.com/736x/eb/e5/6a/ebe56af52b6671d9cc48cea9060bc44f.jpg"; function replaceAvatars() { // Обрабатываем обычные img аватары const imgAvatars = document.querySelectorAll(` img[src*="nztcdn.com/avatar"], img.navTab--visitorAvatar, .avatar, [class*="avatar"], [id*="avatar"], .message-userDetails-avatar, .avatarWrapper img `); imgAvatars.forEach(img => { if (img.src !== clownImageUrl) { const originalWidth = img.width || img.getAttribute('width'); const originalHeight = img.height || img.getAttribute('height'); img.src = clownImageUrl; img.style.objectFit = 'cover'; img.style.objectPosition = 'center'; if (originalWidth) img.width = originalWidth; if (originalHeight) img.height = originalHeight; if (img.hasAttribute('srcset')) img.removeAttribute('srcset'); } }); // Обрабатываем элементы с background-image const bgAvatars = document.querySelectorAll(` [style*="background-image"], [class*="avatar"], [id*="avatar"] `); bgAvatars.forEach(el => { const style = window.getComputedStyle(el); if (style.backgroundImage && style.backgroundImage.includes('nztcdn.com/avatar')) { el.style.backgroundImage = `url("${clownImageUrl}")`; el.style.backgroundSize = 'cover'; el.style.backgroundPosition = 'center'; el.style.backgroundRepeat = 'no-repeat'; } }); } // Запускаем сразу после загрузки страницы replaceAvatars(); // Наблюдаем за изменениями DOM const observer = new MutationObserver(function(mutations) { let needsUpdate = false; mutations.forEach(mutation => { if (mutation.addedNodes) { mutation.addedNodes.forEach(node => { if (node.nodeType === 1 && ( node.matches('img, [style*="background-image"], [class*="avatar"], [id*="avatar"]') || node.querySelector('img, [style*="background-image"], [class*="avatar"], [id*="avatar"]') )) { needsUpdate = true; } }); } }); if (needsUpdate) setTimeout(replaceAvatars, 300); }); observer.observe(document.body, { childList: true, subtree: true }); // Также отслеживаем изменения размеров window.addEventListener('resize', replaceAvatars); })();
Сделай так чтобы в оффтопике только так отображалось и можно оставить на все время в целом --- Сообщение объединено с предыдущим 1 апр 2025 (Я сам там посиживаю)