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);