From ce02887920cbda9974d97ce972d01d2b9807332b Mon Sep 17 00:00:00 2001 From: Kenneth Hendricks <50819541+kenhendricks00@users.noreply.github.com> Date: Sat, 2 Nov 2024 21:34:14 -0400 Subject: [PATCH] Update background.js --- platform/firefox/js/background.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/platform/firefox/js/background.js b/platform/firefox/js/background.js index ee11dc0..4cebf4e 100644 --- a/platform/firefox/js/background.js +++ b/platform/firefox/js/background.js @@ -11,7 +11,11 @@ const approvedUrls = new Map(); // Map to store approved URLs per tab let unsafeSitesRegex = null; let potentiallyUnsafeSitesRegex = null; let safeSites = []; -let starredSites = ["https://fmhy.net", "https://fmhy.pages.dev"]; +let starredSites = [ + "https://fmhy.net", + "https://fmhy.pages.dev", + "https://fmhy.lol", +]; // Helper function to extract URLs from markdown text function extractUrlsFromMarkdown(markdown) { @@ -171,6 +175,11 @@ async function fetchStarredSites() { starredSites.push("https://fmhy.pages.dev"); } + // Ensure fmhy.lol is always in the starred list + if (!starredSites.includes("https://fmhy.lol")) { + starredSites.push("https://fmhy.lol"); + } + console.log("Parsed Starred Sites:", starredSites); } else { console.error("Failed to fetch starred sites:", response.status);