From 53a18e7987ec332b280be0fe473336df332f8c6a Mon Sep 17 00:00:00 2001 From: Lawrence Hook Date: Sun, 1 Mar 2026 16:56:50 -0500 Subject: [PATCH] Hide donate link for premium users instead of showing dead label Co-Authored-By: Claude Opus 4.6 --- src/options/settings-menu.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/options/settings-menu.js b/src/options/settings-menu.js index 9815403..27d40a4 100644 --- a/src/options/settings-menu.js +++ b/src/options/settings-menu.js @@ -493,9 +493,9 @@ function updatePremiumUI(licenseData) { ACCOUNT_OPTION.textContent = 'Sign In'; HTML.setAttribute('is_premium', 'false'); if (DONATE_LINK) { + DONATE_LINK.hidden = false; DONATE_LINK.textContent = 'Donate'; DONATE_LINK.setAttribute('href', DONATE_URL); - DONATE_LINK.style.cursor = ''; } if (HEADER_PREMIUM_BADGE) HEADER_PREMIUM_BADGE.setAttribute('hidden', ''); return; @@ -504,17 +504,15 @@ function updatePremiumUI(licenseData) { if (licenseData && licenseData.isPremium) { HTML.setAttribute('is_premium', 'true'); if (DONATE_LINK) { - DONATE_LINK.textContent = 'Premium'; - DONATE_LINK.removeAttribute('href'); - DONATE_LINK.style.cursor = 'default'; + DONATE_LINK.hidden = true; } if (HEADER_PREMIUM_BADGE) HEADER_PREMIUM_BADGE.removeAttribute('hidden'); } else { HTML.setAttribute('is_premium', 'false'); if (DONATE_LINK) { + DONATE_LINK.hidden = false; DONATE_LINK.textContent = 'Donate'; DONATE_LINK.setAttribute('href', DONATE_URL); - DONATE_LINK.style.cursor = ''; } if (HEADER_PREMIUM_BADGE) HEADER_PREMIUM_BADGE.setAttribute('hidden', ''); }