// Toggle all
on the page (thanks elioat!) const toggleDetails = () => { document.body.querySelectorAll("details").forEach((e) => { if (!e.classList.contains("info")) { e.hasAttribute("open") ? e.removeAttribute("open") : e.setAttribute("open", true); } }); };