(function() { function containsAll(sel, str) { [...document.querySelectorAll(sel)].filter(({ textContent }) => textContent.includes(str)).map(el => el.closest('div[id]')).forEach(div => div.remove()) } containsAll('a', 'Установит'); containsAll('a', 'Браузер'); containsAll('[rel="noopener"]', 'Да'); function rem() { let con = document.querySelector("div.dzen-with-punch-desktop__topContent-OK") || document.querySelector("div#zen-row-0"); if (con) { let par = con.parentNode; par.replaceWith(con); } } rem(); window.setTimeout(rem, 500) })()