let filteredOut = ['Handtekening', 'Thuis']; Array.from(document.querySelectorAll(".test")).forEach((elm) => { if(filteredOut.includes(elm.textContent.trim())) elm.style.display = "none"; });