java
n() { if(document.querySelector("#feedAv")){ document.querySelector("[node-type=cmt-list]").appendChild(removeAD); document.querySelector("#removeAD").appendChild(document.querySelector("#feedAv")); //- removeElement(document.querySelectorAll("#feedAv")[0]); var feedAv = document.querySelector("#feedAv").children; for( item of feedAv){ item.style.display = 'none' } document.querySelector("#removeAD").style.display="none" clearInterval(adInterval1); } },1000); var adInterval2 = setInterval(function() { if(document.querySelector("#pop_ad")){ removeElement(document.querySelector("#pop_ad")); clearInterval(adInterval2); } }, 1000);