Untitled

 avatar
unknown
javascript
a year ago
469 B
2
Indexable
function ocultarElementos() {
    var elementos = document.querySelectorAll('.user-id');
    elementos.forEach(function(elemento) {
        elemento.style.display = 'none';
    });
}

var observer = new MutationObserver(function(mutations) {
    mutations.forEach(function(mutation) {
        if (mutation.addedNodes.length > 0) {
            ocultarElementos();
        }
    });
});

observer.observe(document.body, { childList: true, subtree: true });