function fixW2DCLinks() {
document.querySelectorAll(".w2dc-listing-location").forEach(function(listing) {
let btn = listing.querySelector(".w2dc-show-on-map");
let link = listing.querySelector("h2 a");
if (!btn || !link) return;
// remove old button completely
let a = document.createElement("a");
a.href = link.href;
a.className = btn.className;
a.textContent = "View";
btn.replaceWith(a);
});
}
// run multiple times (because map reloads DOM)
setInterval(fixW2DCLinks, 1000);