twitter.js (446B)
1 function adblock() { 2 let spans = document.getElementsByTagName('span'); 3 for (let i = 0; i < spans.length; i++){ 4 if(spans[i].innerHTML == "Promoted" || spans[i].innerHTML == "プロモーション"){ 5 spans[i].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.display = "none"; 6 } 7 } 8 } 9 10 document.addEventListner(load, adblock());