Удаляет все элементы с классом uniqUsernameIcon на lolz.live
当前为
// ==UserScript==
// @name Lolz.live - Remove uniqUsernameIcon
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Удаляет все элементы с классом uniqUsernameIcon на lolz.live
// @author eretly
// @match https://lolz.live/*
// @grant none
// @license MIT
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
const fastDelete = () => {
const icons = document.querySelectorAll('.uniqUsernameIcon');
if (icons.length > 0) {
icons.forEach(el => el.remove());
}
};
fastDelete();
const interval = setInterval(fastDelete, 100);
const observer = new MutationObserver((mutations) => {
fastDelete();
});
observer.observe(document, {
childList: true,
subtree: true,
attributes: false,
characterData: false
});
window.addEventListener('load', () => {
clearInterval(interval);
fastDelete();
});
})();