mirror of
https://github.com/fmhy/FMHY-SafeGuard.git
synced 2026-03-11 08:55:40 +00:00
Update background.js
This commit is contained in:
parent
8feaaeab53
commit
dd97aa9340
1 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue