|
|
document.querySelectorAll('.filter').forEach(function(ele) {
ele.addEventListener('click', function() {
document.querySelectorAll('#mw-content-text dl').forEachsetTimeout(function(parent) {
var child = parentdocument.querySelectorquerySelectorAll('dd > :not(.#mw-collapsed)content-text dl');.forEach(function(parent) {
if( var child = parent.querySelector('dd > :not(.mw-collapsed)');
parent.style.display = '';if(child)
else parent.style.display = '';
parent.style.display = 'none';else
}) parent.style.display = 'none';
});
}, 50);
});
});
|