// Get all the span elements with the specific class const spans = document.querySelectorAll('span.text-[16px].text-black.flex.font-[400].mb-2'); // Loop through all the spans and set their display to none (hide them) spans.forEach(span => { span.style.display = 'none'; });