Skip to content

Instantly share code, notes, and snippets.

@tihhgoncalves
Created February 28, 2022 15:06
Show Gist options
  • Save tihhgoncalves/51b0e5c40589901a01b9ada07cb63b20 to your computer and use it in GitHub Desktop.
Save tihhgoncalves/51b0e5c40589901a01b9ada07cb63b20 to your computer and use it in GitHub Desktop.
Disqus - Esconder anúncios no plano gratuito
/** Script que oculta anuncios do Disqus | @tihhgoncalves **/
setInterval(() => {
var i, frames;
frames = document.querySelectorAll("#disqus_thread iframe");
for (i = 0; i < frames.length; ++i) {
let src = frames[i].src;
if (!src) {
frames[i].style.display = "none";
}
}
}, 500)
@tihhgoncalves
Copy link
Author

✳️ Escrevi um artigo sobre isso. Se te interessar, clique aqui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment