Removedor de comentarios

Esconde os comentarios de varios sites de noticias brasileiros

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name        Removedor de comentarios
// @description Esconde os comentarios de varios sites de noticias brasileiros
// @include     http*://*.em.com.br/*
// @include     http*://*.globo.com/*
// @include     http*://veja.abril.com.br/*
// @include     http*://*.yahoo.com/*
// @include     http*://*.uol.com.br/*
// @include     http*://whiplash.net/*
// @include     http*://*.cartacapital.com.br/*
// @include     http*://*.terra.com.br/*
// @include     http*://*.brasil247.com/*
// @include     http*://*.pragmatismopolitico.com.br/*
// @include     http*://*.estadao.com.br/*
// @include     http*://*.otempo.com.br/*
// @author      Luiza Utsch
// @grant       none
// @version     1.78
// @namespace https://greasyfork.org/users/5705
// ==/UserScript==

if (/em\.com\.br/i.test (location.hostname) ) {
    // EM
    var comments = document.getElementById('div_comentarios');
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/globo\.com/i.test (location.hostname) ) {
    // G1
    comments = document.getElementById('boxComentarios');
    if (comments) {
        comments.style.display = 'none';
    }
    // o globo
    comments = document.getElementById('comments');
    if (comments) {
        comments.style.display = 'none';
    }

    comments = document.getElementsByClassName('lista-comentarios')[0];
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/veja\.abril\.com/i.test (location.hostname) ) {
    // Veja
    comments = document.getElementById('comments_list');
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/yahoo\.com/i.test (location.hostname) ) {
    // yahoo
    comments = document.getElementById('mediacommentsugc_container');
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/whiplash\.net/i.test (location.hostname) ) {
    //Whiplash
    comments = document.getElementById('facebook-jssdk');//jeito generico de remover comentarios de facebook
    if (comments) {
        comments.parentNode.removeChild(comments);
    }
} else if (/cartacapital\.com\.br/i.test (location.hostname) ) {
    //Carta Capital
    comments = document.getElementById('disqus_thread');
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/terra\.com\.br/i.test (location.hostname) ) {
    //Terra
    comments = document.getElementById('divAnnotatio');
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/brasil247\.com/i.test (location.hostname) ) {
    //Brasil247
    comments = document.getElementById('comments');
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/estadao\.com\.br/i.test (location.hostname) ) {
    //Brasil247
    comments = document.getElementsByClassName('comentarios')[0];
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/pragmatismopolitico\.com\.br/i.test (location.hostname) ) {
    //Pragmatismo Politico
    comments = document.getElementById('comments');
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/otempo\.com\.br/i.test (location.hostname) ) {
    //O Tempo
    comments = document.getElementsByClassName('comentarios')[0];
    if (comments) {
        comments.style.display = 'none';
    }
} else if (/uol\.com\.br/i.test (location.hostname) ) {
    // remove FSP
    comments = document.getElementById('article-comments');
    if (comments) {
        comments.style.display = 'none';
    }

    //UOL
    comments = document.getElementById('comentarios');
    if (comments) {
        comments.style.display = 'none';
    }

    //Blog do Sakamoto
    comments = document.getElementById('comentarios');
    if (comments) {
        comments.style.display = 'none';
    }
}