From 9ae4ef6e7d7dc4fde63f1da63487dec34101919e Mon Sep 17 00:00:00 2001 From: Guy Sandler Date: Tue, 20 Jan 2026 13:17:13 -0800 Subject: [PATCH] fixed themes to only be local --- html/popup.html | 19 ++++--------------- js/popup.js | 25 +++++++++++++------------ 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/html/popup.html b/html/popup.html index 460c74e..069a09b 100644 --- a/html/popup.html +++ b/html/popup.html @@ -429,18 +429,7 @@
-
-
-

The theme browser has been updated to allow you to like themes, see real-time submissions, and easily submit new themes!

-

If you choose to use the new browser, an ID will be registered to you in order to save your likes, but your ID is anonymous for your privacy. More info here

-
- - -
-
-
-
-
+
@@ -502,7 +491,7 @@
-
+
- + diff --git a/js/popup.js b/js/popup.js index b2e37ba..3063cd5 100644 --- a/js/popup.js +++ b/js/popup.js @@ -545,12 +545,12 @@ function setup() { }); // activate theme browser opt out - document.getElementById("new_browser_out").addEventListener("click", () => { + // document.getElementById("new_browser_out").addEventListener("click", () => { chrome.storage.sync.set({ "new_browser": false }); current_page_num = 1; displayThemeList(0); - displayAlert(false, "Success! You are now viewing the old theme browser. This one will no longer recieve updates, but there is still plenty to choose from."); - }); + // displayAlert(false, "Success! You are now viewing the old theme browser. This one will no longer recieve updates, but there is still plenty to choose from."); + // }); // activate theme browser opt in // document.getElementById("new_browser_in").addEventListener("click", registerUser); @@ -571,10 +571,10 @@ function setup() { document.getElementById("browser-settings-popup").classList.remove("open"); }); - document.getElementById("reset-optin").addEventListener("click", () => { - chrome.storage.sync.set({ "new_browser": null }); - document.getElementById("opt-in").style.display = "block"; - }); + // document.getElementById("reset-optin").addEventListener("click", () => { + // chrome.storage.sync.set({ "new_browser": null }); + // document.getElementById("opt-in").style.display = "block"; + // }); // document.getElementById("view-submissions-btn").addEventListener("click", displayMySubmissions); document.getElementById("submit-form-btn").addEventListener("click", displayThemeSubmissionForm); @@ -829,10 +829,10 @@ async function submitTheme() { //TODO: remake const sync = await chrome.storage.sync.get(null); - if (sync["new_browser"] !== true) { - displayAlert(true, "You'll need to opt in to the new browser if you want to submit your theme. If you've opted out and want to opt in, you can scroll down to the bottom of this page and opt back in."); - return; - } + // if (sync["new_browser"] !== true) { + // displayAlert(true, "You'll need to opt in to the new browser if you want to submit your theme. If you've opted out and want to opt in, you can scroll down to the bottom of this page and opt back in."); + // return; + // } const theme = await getExport(sync, ["custom_cards", "card_colors", "dark_preset", "custom_font", "gradient_cards", "disable_color_overlay"]); const title = document.getElementById("submit-title"); @@ -1215,6 +1215,7 @@ function displaySavedThemes() { function getTheme(name) { // get localThemes from themes.js + console.log(themes); if (name === "all") return themes; for (const theme in themes) if (theme.title === name) return theme @@ -1429,7 +1430,7 @@ function displayAdvancedCards() { }; }); } else { - document.querySelector(".advanced-cards").innerHTML = `

Couldn't find your cards!
You may need to refresh your Canvas page and/or this menu page.

If you're having issues please contact me - ksucpea@gmail.com

`; + document.querySelector(".advanced-cards").innerHTML = `

Couldn't find your cards!
You may need to refresh your Canvas page and/or this menu page.

If you're having issues please contact me - sandlerguy5@gmail.com

`; } }); }