top of page
bottom of page
console.log("script loaded") (function () { function deepQueryAll(selector, root = document) { let results = [...root.querySelectorAll(selector)]; const all = root.querySelectorAll("*"); all.forEach(el => { if (el.shadowRoot) { results = results.concat(deepQueryAll(selector, el.shadowRoot)); } }); return results; } function scrollToTaxation() { if (window.location.hash !== "#taxation") return false; const h = deepQueryAll("h2").find( el => el.textContent.trim().toLowerCase() === "taxation" ); if (h) { h.scrollIntoView({ behavior: "smooth", block: "start" }); return true; } return false; } function pollForTarget() { let tries = 0; const timer = setInterval(() => { if (scrollToTaxation() || ++tries > 150) { clearInterval(timer); } }, 100); } pollForTarget(); window.addEventListener("hashchange", pollForTarget); })();