Update background.js

This commit is contained in:
Kenneth Hendricks 2024-11-02 21:33:59 -04:00 committed by GitHub
parent 8feaaeab53
commit dd97aa9340
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",
];
function extractUrlsFromMarkdown(markdown) {
const urlRegex = /https?:\/\/[^\s)]+/g;
@ -159,6 +163,10 @@ async function fetchStarredSites() {
starredSites.push("https://fmhy.pages.dev");
}
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);