Scroll to Top
1
(function() { function showChatWidget() { var cw = document.querySelector("chat-widget"); if (cw) cw.style.setProperty("display", "block", "important"); } // MutationObserver to catch chat-widget whenever it appears/changes var obs = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(n) { if (n.nodeType === 1) { if (n.tagName && n.tagName.toLowerCase() === "chat-widget") { n.style.setProperty("display", "block", "important"); } var nested = n.querySelector && n.querySelector("chat-widget"); if (nested) nested.style.setProperty("display", "block", "important"); } }); }); showChatWidget(); }); obs.observe(document.body || document.documentElement, {childList: true, subtree: true}); // Also poll every 500ms for first 10 seconds var tries = 0; var poll = setInterval(function() { showChatWidget(); if (++tries >= 20) clearInterval(poll); }, 500); // Fix hero CTA button function fixHeroBtn() { var btn = document.querySelector(".hero-estimate-btn"); if (btn && !btn._fixed) { btn._fixed = true; btn.addEventListener("click", function(e) { e.preventDefault(); e.stopPropagation(); window.location.href = "/what-is-my-home-worth/"; }); } } document.addEventListener("DOMContentLoaded", fixHeroBtn); setTimeout(fixHeroBtn, 1000); })();