ocument.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll('a[href*="privacy-policy"]').forEach(function (privacyLink) {
var container = privacyLink.parentElement;
if (!container || container.querySelector(".termly-do-not-sell-link")) return;
var separator = document.createTextNode(" | ");
var optOutLink = document.createElement("a");
optOutLink.href = "#";
optOutLink.className = "termly-do-not-sell-link termly-display-preferences";
optOutLink.textContent = "Do Not Sell or Share My Personal Information";
optOutLink.addEventListener("click", function (event) {
event.preventDefault();
if (typeof window.displayPreferenceModal === "function") {
window.displayPreferenceModal();
}
});
privacyLink.after(separator, optOutLink);
});
});