Hacker News new | ask | show | jobs
by ggx2 1106 days ago
Why not this?

  document.querySelectorAll("p").forEach(e => e.style.display = "none")
1 comments

Or:

    for (const e of document.querySelectorAll("p")) { e.style.display = "none" }