mirror of
https://github.com/fmhy/FMHY-SafeGuard.git
synced 2026-03-11 08:55:40 +00:00
Add files via upload
This commit is contained in:
parent
3ae40b65d7
commit
9356cd902b
8 changed files with 74 additions and 15 deletions
|
|
@ -96,8 +96,14 @@
|
|||
}
|
||||
},
|
||||
"statusNoData": {
|
||||
"message": "Website-Status kann nicht überprüft werden. Bitte versuchen Sie es später erneut.",
|
||||
"description": "No data available message"
|
||||
"message": "Keine Daten verfügbar für <strong>$DOMAIN$</strong>.",
|
||||
"description": "No data available message",
|
||||
"placeholders": {
|
||||
"domain": {
|
||||
"content": "$1",
|
||||
"example": "example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningPageTitle": {
|
||||
"message": "FMHY SafeGuard - Warnung",
|
||||
|
|
|
|||
|
|
@ -96,8 +96,14 @@
|
|||
}
|
||||
},
|
||||
"statusNoData": {
|
||||
"message": "Unable to check site status. Please try again later.",
|
||||
"description": "No data available message"
|
||||
"message": "No data available for <strong>$DOMAIN$</strong>.",
|
||||
"description": "No data available message",
|
||||
"placeholders": {
|
||||
"domain": {
|
||||
"content": "$1",
|
||||
"example": "example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningPageTitle": {
|
||||
"message": "FMHY SafeGuard - Warning",
|
||||
|
|
|
|||
|
|
@ -96,8 +96,14 @@
|
|||
}
|
||||
},
|
||||
"statusNoData": {
|
||||
"message": "No se puede verificar el estado del sitio. Por favor, inténtalo de nuevo más tarde.",
|
||||
"description": "No data available message"
|
||||
"message": "No hay datos disponibles para <strong>$DOMAIN$</strong>.",
|
||||
"description": "No data available message",
|
||||
"placeholders": {
|
||||
"domain": {
|
||||
"content": "$1",
|
||||
"example": "example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningPageTitle": {
|
||||
"message": "FMHY SafeGuard - Advertencia",
|
||||
|
|
|
|||
|
|
@ -96,8 +96,14 @@
|
|||
}
|
||||
},
|
||||
"statusNoData": {
|
||||
"message": "Impossible de vérifier le statut du site. Veuillez réessayer plus tard.",
|
||||
"description": "No data available message"
|
||||
"message": "Aucune donnée disponible pour <strong>$DOMAIN$</strong>.",
|
||||
"description": "No data available message",
|
||||
"placeholders": {
|
||||
"domain": {
|
||||
"content": "$1",
|
||||
"example": "example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningPageTitle": {
|
||||
"message": "FMHY SafeGuard - Avertissement",
|
||||
|
|
|
|||
|
|
@ -96,8 +96,14 @@
|
|||
}
|
||||
},
|
||||
"statusNoData": {
|
||||
"message": "サイトの状態を確認できません。後でもう一度お試しください。",
|
||||
"description": "No data available message"
|
||||
"message": "<strong>$DOMAIN$</strong> のデータがありません。",
|
||||
"description": "No data available message",
|
||||
"placeholders": {
|
||||
"domain": {
|
||||
"content": "$1",
|
||||
"example": "example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningPageTitle": {
|
||||
"message": "FMHY SafeGuard - 警告",
|
||||
|
|
|
|||
|
|
@ -96,8 +96,14 @@
|
|||
}
|
||||
},
|
||||
"statusNoData": {
|
||||
"message": "Não foi possível verificar o status do site. Por favor, tente novamente mais tarde.",
|
||||
"description": "No data available message"
|
||||
"message": "Nenhum dado disponível para <strong>$DOMAIN$</strong>.",
|
||||
"description": "No data available message",
|
||||
"placeholders": {
|
||||
"domain": {
|
||||
"content": "$1",
|
||||
"example": "example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningPageTitle": {
|
||||
"message": "FMHY SafeGuard - Aviso",
|
||||
|
|
|
|||
|
|
@ -96,8 +96,14 @@
|
|||
}
|
||||
},
|
||||
"statusNoData": {
|
||||
"message": "Не удалось проверить статус сайта. Пожалуйста, попробуйте позже.",
|
||||
"description": "No data available message"
|
||||
"message": "Нет данных для <strong>$DOMAIN$</strong>.",
|
||||
"description": "No data available message",
|
||||
"placeholders": {
|
||||
"domain": {
|
||||
"content": "$1",
|
||||
"example": "example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningPageTitle": {
|
||||
"message": "FMHY SafeGuard - Предупреждение",
|
||||
|
|
|
|||
|
|
@ -161,6 +161,19 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|||
console.log("Current URL:", currentUrl);
|
||||
console.log("Root URL:", rootUrl);
|
||||
|
||||
// Handle browser internal pages (newtab, settings, etc.)
|
||||
if (
|
||||
currentUrl.startsWith("chrome://") ||
|
||||
currentUrl.startsWith("about:") ||
|
||||
currentUrl.startsWith("edge://") ||
|
||||
currentUrl.startsWith("brave://") ||
|
||||
currentUrl.startsWith("opera://") ||
|
||||
currentUrl.startsWith("vivaldi://")
|
||||
) {
|
||||
handleStatusUpdate("browser_page", currentUrl);
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle extension pages
|
||||
if (
|
||||
currentUrl.startsWith(warningPageUrl) ||
|
||||
|
|
@ -307,6 +320,9 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|||
case "starred":
|
||||
message = getMessage("statusStarred", displayUrl) || `${displayUrl} is a <strong>starred</strong> site.`;
|
||||
break;
|
||||
case "browser_page":
|
||||
message = "This is a <strong>browser page</strong>.";
|
||||
break;
|
||||
case "extension_page":
|
||||
if (displayUrl.startsWith(warningPageUrl)) {
|
||||
message =
|
||||
|
|
@ -322,7 +338,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|||
}
|
||||
break;
|
||||
case "no_data":
|
||||
message = getMessage("statusNoData") || `No data available for <strong>${displayUrl}</strong>.`;
|
||||
message = getMessage("statusNoData", displayUrl) || `No data available for <strong>${displayUrl}</strong>.`;
|
||||
break;
|
||||
default:
|
||||
message = getMessage("statusUnknown", displayUrl) || `${displayUrl} is not in our database.`;
|
||||
|
|
@ -338,6 +354,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|||
fmhy: "../res/icons/fmhy.png",
|
||||
safe: "../res/icons/safe.png",
|
||||
starred: "../res/icons/starred.png",
|
||||
browser_page: "../res/ext_icon_144.png",
|
||||
extension_page: "../res/ext_icon_144.png",
|
||||
no_data: "../res/ext_icon_144.png",
|
||||
error: "../res/icons/error.png",
|
||||
|
|
|
|||
Loading…
Reference in a new issue