// ==UserScript== // @name Удаление комментов // @icon https://www.google.com/s2/favicons?sz=64&domain=lolz.guru // @version 1.0 // @description Удаляет комментарии // @author Sakura // @match https://lolz.live/* // @grant none // ==/UserScript== (function() { 'use strict'; function removeThreadLastPost() { const elements = document.querySelectorAll('.threadLastPost'); elements.forEach(el => { el.remove(); }); } removeThreadLastPost(); const observer = new MutationObserver(removeThreadLastPost); observer.observe(document.body, { childList: true, subtree: true }); })(); JS // ==UserScript== // @name Удаление комментов // @icon https://www.google.com/s2/favicons?sz=64&domain=lolz.guru // @version 1.0 // @description Удаляет комментарии // @author Sakura // @match https://lolz.live/* // @grant none // ==/UserScript== (function() { 'use strict'; function removeThreadLastPost() { const elements = document.querySelectorAll('.threadLastPost'); elements.forEach(el => { el.remove(); }); } removeThreadLastPost(); const observer = new MutationObserver(removeThreadLastPost); observer.observe(document.body, { childList: true, subtree: true }); })(); До После