window.addEventListener('load', function() { setTimeout(function() { document.querySelectorAll('.adsbygoogle').forEach(function(ad) { if (ad.innerHTML.trim().length === 0) { ad.style.display = 'none'; } }); }, 3000); });