@ecomprocess THAT WORKED! Thank you <3
Modified script here to include the word “add” which essentially pushes ALL sales to a 3rd party platform to keep things unified there ![]()
So this works with all upgrade buttons and all “add” buttons on the pricing page
<script>
document.addEventListener("DOMContentLoaded", function() {
// Your custom redirect URL
const customUrl = "REPLACEWITHYOURWEBSITE.COM";
// Wait for the button(s) to appear (handles client-side rendering)
const observer = new MutationObserver(() => {
const targetBtns = Array.from(document.querySelectorAll("button"))
.filter(btn => {
const text = btn.textContent.trim().toLowerCase();
return text === "upgrade" || text === "add";
});
targetBtns.forEach(btn => {
if (!btn._customRedirect) {
btn.addEventListener("click", function(e) {
e.preventDefault();
window.location.href = customUrl;
});
btn._customRedirect = true;
}
});
});
observer.observe(document.body, { childList: true, subtree: true });
});
</script>