Enhance icon tagging rules and add new patterns for country detection in external-proxies-sanitizer.js

This commit is contained in:
2026-04-04 14:52:53 +03:00
parent e9f85eaa93
commit 27e6dc44d9

View File

@@ -43,13 +43,16 @@ const NOISE_PATTERNS = [
// 2) Keyword -> icon tags (if found in original name, icon is added; the keyword is removed from base name) // 2) Keyword -> icon tags (if found in original name, icon is added; the keyword is removed from base name)
// 🇫‌🇿‌ 🇺‌🇳‌ 🇩‌🇻‌ 🇻‌🇿‌ 🇵‌🇷‌ 🇦‌🇿‌ 🇬‌🇺‌🇦‌🇷‌🇩‌ // 🇫‌🇿‌ 🇺‌🇳‌ 🇩‌🇻‌ 🇻‌🇿‌ 🇵‌🇷‌ 🇦‌🇿‌ 🇬‌🇺‌🇦‌🇷‌🇩‌
const ICON_RULES = [ const ICON_RULES = [
{ regex: /TEST/gi, icon: "🧪" }, { regex: /TEST/gi, icon: "🧪" },
{ regex: uWordBoundaryGroup("Low Ping"), icon: "⚡️" }, { regex: uWordBoundaryGroup("Low Ping|⚡"), icon: "⚡️" },
{ regex: uWordBoundaryGroup("10 Gbit"), icon: "🛤️" }, { regex: uWordBoundaryGroup("10 Gbit|20 Гбит/c"), icon: "🛤️" },
{ regex: uWordBoundaryGroup("YT|Russia|Россия"), icon: "📺" }, { regex: uWordBoundaryGroup("YT|Russia|Россия|Saint Petersburg"), icon: "📺" },
{ regex: uWordBoundaryGroup("IPv6"), icon: "🎱" }, { regex: uWordBoundaryGroup("IPv6"), icon: "🎱" },
{ regex: uWordBoundaryGroup("Gemini|AI Studio"), icon: "🤖" }, { regex: uWordBoundaryGroup("Gemini|AI Studio"), icon: "🤖" },
{ regex: uWordBoundaryGroup("Torrent|P2P|P2P-Torrents"), icon: "🧲" }, { regex: uWordBoundaryGroup("Torrent|P2P|P2P-Torrents"), icon: "🧲" },
{ regex: uWordBoundaryGroup("Мегафон|MTS|Yota|T2|Все операторы"), icon: "📃" },
{ regex: uWordBoundaryGroup("Мост"), icon: "🌉" },
{ regex: uWordBoundaryGroup("local"), icon: "🚪" }, { regex: uWordBoundaryGroup("local"), icon: "🚪" },
{ regex: uWordBoundaryGroup("neighbourhood"), icon: "🫂" }, { regex: uWordBoundaryGroup("neighbourhood"), icon: "🫂" },
@@ -178,6 +181,7 @@ const METATAG_RULES = {
"grpc/trojan": "🅶🆃", "grpc/trojan": "🅶🆃",
"tcp/trojan": "🆃🆃", "tcp/trojan": "🆃🆃",
"tcp/ss": "🆃🆂‌", "tcp/ss": "🆃🆂‌",
"grpc/vless": "🅶🆅",
"tcp/vless": "🆃🆅", "tcp/vless": "🆃🆅",
"ws/vless": "🆆🆅", "ws/vless": "🆆🆅",
"xhttp/vless": "🆇🆅", "xhttp/vless": "🆇🆅",