From 8fccc57b7552a4ef52e6778272a6fa20074959db Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Mon, 28 Jul 2025 17:08:23 -0700 Subject: [PATCH] fix: removes footer link --- docs/c15t-cookie-banner.js | 40 -------------------------------------- 1 file changed, 40 deletions(-) diff --git a/docs/c15t-cookie-banner.js b/docs/c15t-cookie-banner.js index eec93051d..87f02c70f 100644 --- a/docs/c15t-cookie-banner.js +++ b/docs/c15t-cookie-banner.js @@ -41,8 +41,6 @@ showCookieBanner(); } - // Add preferences button to footer - addPreferencesButton(); } function getStoredConsent() { @@ -236,44 +234,6 @@ if (dialogOverlay) dialogOverlay.remove(); } - function addPreferencesButton() { - // Wait for Mintlify footer to load - const checkFooter = setInterval(function () { - const footer = document.querySelector("footer"); - if (footer) { - clearInterval(checkFooter); - - // Check if button already exists - if (document.getElementById("cookie-preferences-link")) { - return; - } - - // Create a cookie preferences link - const preferencesLink = document.createElement("a"); - preferencesLink.id = "cookie-preferences-link"; - preferencesLink.href = "#"; - preferencesLink.textContent = "Cookie Preferences"; - preferencesLink.style.cursor = "pointer"; - preferencesLink.style.marginLeft = "1rem"; - preferencesLink.onclick = function (e) { - e.preventDefault(); - showPreferencesDialog(); - }; - - // Find the footer socials container or create a new container - const footerSocials = footer.querySelector('[class*="socials"]'); - if (footerSocials && footerSocials.parentElement) { - footerSocials.parentElement.appendChild(preferencesLink); - } else { - // Fallback: append to footer - const footerContent = footer.querySelector("div"); - if (footerContent) { - footerContent.appendChild(preferencesLink); - } - } - } - }, 1000); - } // Add styles const style = document.createElement("style");