diff --git a/BaseFilter/sections/general_extensions.txt b/BaseFilter/sections/general_extensions.txt index 3340e11a0cb..87db954c027 100644 --- a/BaseFilter/sections/general_extensions.txt +++ b/BaseFilter/sections/general_extensions.txt @@ -2278,7 +2278,7 @@ linkflash.techipe.info#%#//scriptlet('prevent-addEventListener', '/^PN_CREAT/', linkflash.techipe.info#%#//scriptlet('prevent-addEventListener', 'PN_BEFORE_CREATE', '][') ! https://github.com/AdguardTeam/AdguardFilters/issues/177490 ! https://github.com/AdguardTeam/AdguardFilters/issues/72369 -loadout.tf#%#(()=>{const e=new MutationObserver(((e,t)=>{for(let t of e)if(t.target?.matches?.(".loadout-application-main")){t.target.querySelectorAll("div").forEach((e=>{if(e.shadowRoot&&e.shadowRoot.querySelector?.('.header > div[data-i18n="#advertisement"]'))try{e.remove()}catch(e){console.error(e)}}))}})),t={apply:(t,o,r)=>{try{r[0].mode="open"}catch(e){console.error(e)}const a=Reflect.apply(t,o,r);return e.observe(a,{subtree:!0,childList:!0}),a}};window.Element.prototype.attachShadow=new Proxy(window.Element.prototype.attachShadow,t)})(); +loadout.tf#%#(()=>{const t=new MutationObserver((t=>{for(let e of t){const t=e.target;if(t?.querySelector?.("div:not([class], [id]):first-child + div:not([class], [id]):not([class], [id]):last-child")){const e=t.querySelector("div:not([class], [id]):last-child");if("#advertisement"===e?.shadowRoot?.querySelector?.("div:not([class], [id]) > div:not([class], [id])")?.textContent)try{e.remove()}catch(t){console.trace(t)}}}})),e={apply:(e,o,c)=>{try{c[0].mode="open"}catch(t){console.error(t)}const s=Reflect.apply(e,o,c);return t.observe(s,{subtree:!0,childList:!0}),s}};window.Element.prototype.attachShadow=new Proxy(window.Element.prototype.attachShadow,e)})(); loadout.tf#%#//scriptlet("prevent-setTimeout", "htmlAd.getBoundingClientRect") ! https://github.com/AdguardTeam/AdguardFilters/issues/72597 cryptoads.space#%#//scriptlet("prevent-window-open")