document.querySelectorAll("tr.child-of-item-73063").forEach((e) => e.remove()); template = document.createElement("template"); template.innerHTML = ""; document.querySelector("#item-73063").after(...template.content.children) template.remove() document.querySelector("#item-expand-link-73063").style.display = 'none'; document.querySelector("#item-collapse-link-73063").style.display = 'inline-block';