Untitled
unknown
javascript
2 years ago
469 B
6
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 });Editor is loading...