Hide all elements with a specific CSS class document.querySelectorAll('.SomeClassName.SomeOtherClassName').forEach(function(element) { element.style.display = 'none'; });