Update background.js

This commit is contained in:
Kenneth Hendricks 2024-11-02 21:34:14 -04:00 committed by GitHub
parent dd97aa9340
commit ce02887920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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