scrapbox.addListener("page:changed", () => { const anchors = document.querySelectorAll('a[href^="/"]:not([target="_blank"])'); [...anchors].forEach(e=>{e.onclick=()=>{ // s/onClick/onclick/g //$(".links-2-hop").remove(); if(document.querySelector(".page .line-title")) { $(".line").css("display","none"); $(".links-2-hop").css("display","none"); } }}); });