From ab0d0e5423fce70f098fd2ba2a4dd346acf58e86 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sat, 26 Oct 2024 15:30:59 +0800 Subject: [PATCH] Update META.js --- META.js | 51 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/META.js b/META.js index f566ad7..ae335d7 100644 --- a/META.js +++ b/META.js @@ -81,87 +81,87 @@ const services = [ const locations = [ { name: "Argentina 🇦🇷", - icon: `${LOCATION_ICON_SET_URL}argentina.png`, + icon: `${LOCATION_ICON_SET_URL}argentina`, filter: "(?i)\u963f\u6839\u5ef7|Argentina|ARG|AR|argentina|arg|ar|🇦🇷", }, { name: "Canada 🇨🇦", - icon: `${LOCATION_ICON_SET_URL}canada.png`, + icon: `${LOCATION_ICON_SET_URL}canada`, filter: "(?i)\u52a0\u62ff\u5927|Canada|CAN|CA|canada|ca|🇨🇦", }, { name: "Finland 🇫🇮", - icon: `${LOCATION_ICON_SET_URL}finland.png`, + icon: `${LOCATION_ICON_SET_URL}finland`, filter: "(?i)\u82ac\u5170|Finland|FIN|FI|finland|fin|fi|🇫🇮", }, { name: "France 🇫🇷", - icon: `${LOCATION_ICON_SET_URL}france.png`, + icon: `${LOCATION_ICON_SET_URL}france`, filter: "(?i)\u6cd5\u56fd|France|FR|france|fr|🇫🇷", }, { name: "Germany 🇩🇪", - icon: `${LOCATION_ICON_SET_URL}germany.png`, + icon: `${LOCATION_ICON_SET_URL}germany`, filter: "(?i)\u5fb7\u56fd|Germany|GER|DE|germany|ger|de|🇩🇪", }, { name: "Hong Kong, China 🇭🇰", - icon: `${LOCATION_ICON_SET_URL}hongkong-circular.png`, + icon: `${LOCATION_ICON_SET_URL}hongkong-circular`, filter: "(?i)\u9999\u6e2f|Hong Kong|HK|hong kong|hk|🇭🇰", }, { name: "Iraq 🇮🇶", - icon: `${LOCATION_ICON_SET_URL}iraq.png`, + icon: `${LOCATION_ICON_SET_URL}iraq`, filter: "(?i)\u4f0a\u62c9\u514b|Iraq|IRQ|IQ|iraq|iq|🇮🇶", }, { name: "Japan 🇯🇵", - icon: `${LOCATION_ICON_SET_URL}japan.png`, + icon: `${LOCATION_ICON_SET_URL}japan`, filter: "(?i)\u65e5\u672c|Japan|japan|ja|🇯🇵", }, { name: "Korea 🇰🇷", - icon: `${LOCATION_ICON_SET_URL}south-korea.png`, + icon: `${LOCATION_ICON_SET_URL}south-korea`, filter: "(?i)\u97e9\u56fd|Korea|KR|korea|kr|🇰🇷", }, { name: "Russia 🇷🇺", - icon: `${LOCATION_ICON_SET_URL}russian-federation.png`, + icon: `${LOCATION_ICON_SET_URL}russian-federation`, filter: "(?i)\u4fc4\u7f57\u65af|Russia Federation|Russia|RU|russia federation|russia|ru|🇷🇺", }, { name: "Singapore 🇸🇬", - icon: `${LOCATION_ICON_SET_URL}singapore.png`, + icon: `${LOCATION_ICON_SET_URL}singapore`, filter: "(?i)\u65b0\u52a0\u5761|Singapore|singapore|sg|🇸🇬", }, { - name: "Taiwan, China 🇨🇳", - icon: `${LOCATION_ICON_SET_URL}china.png`, - filter: "(?i)\u53f0\u6e7e|Taiwan|TW|taiwan|tw|\uD83C\uDDF9\uD83C\uDDFC|🇨🇳", + name: "Taiwan, China 🇹🇼", + icon: `${LOCATION_ICON_SET_URL}china-circular`, + filter: "(?i)\u53f0\u6e7e|Taiwan|TW|taiwan|tw|\uD83C\uDDF9\uD83C\uDDFC", }, { name: "Thailand 🇹🇭", - icon: `${LOCATION_ICON_SET_URL}thailand.png`, + icon: `${LOCATION_ICON_SET_URL}thailand`, filter: "(?i)\u6cf0\u56fd|Thailand|TH|thailand|th|🇹🇭", }, { name: "Türkiye 🇹🇷", - icon: `${LOCATION_ICON_SET_URL}turkey.png`, + icon: `${LOCATION_ICON_SET_URL}turkey`, filter: "(?i)\u571f\u8033\u5176|Türkiye|Turkey|TUR|TR|türkiye|turkey|tur|tr|🇹🇷", }, { name: "Ukraine 🇺🇦", - icon: `${LOCATION_ICON_SET_URL}ukraine.png`, + icon: `${LOCATION_ICON_SET_URL}ukraine`, filter: "(?i)\u4e4c\u514b\u5170|Ukraine|UKR|UA|ukraine|ukr|ua|🇺🇦", }, { name: "United Kingdom 🇬🇧", - icon: `${LOCATION_ICON_SET_URL}great-britain.png`, + icon: `${LOCATION_ICON_SET_URL}great-britain`, filter: "(?i)\u82f1\u56fd|United Kingdom|Great Britain|UK|GB|united kingdom|great britain|uk|gb|🇬🇧", }, { name: "United States 🇺🇸", - icon: `${LOCATION_ICON_SET_URL}usa.png`, + icon: `${LOCATION_ICON_SET_URL}usa`, filter: "(?i)\u7f8e\u56fd|United States of America|United States|USA|US|united states of america|united states|usa|us|🇺🇸", }, { @@ -394,6 +394,15 @@ const proxyGroups = [ proxies: ["REJECT", "DIRECT"], icon: `${BASE_ICON_SET_URL}Advertising.png`, }, + { + ...locationPolicyProxyGroupDefaults, + name: "Mainland China 🇨🇳", + type: "select", + icon: `${LOCATION_ICON_SET_URL}china`, + proxies: ["DIRECT"], + "include-all": true, + filter: "(?i)\u5927\u9646|\u4e2d\u56fd|\u7535\u4fe1|\u79fb\u52a8|\u8054\u901a|Mainland|China|CN|mainland|china|cn|🇨🇳", + }, ...generateLocationPolicyProxyGroups( locations, locationPolicyProxyGroupDefaults, @@ -447,14 +456,14 @@ const rules = [ "RULE-SET,ads,Advertising", "RULE-SET,win-spy,Advertising", ...generateServiceRules(services), - "RULE-SET,direct,DIRECT", + "RULE-SET,direct,Mainland China 🇨🇳", "RULE-SET,proxy,PROXY", "RULE-SET,tld-!cn,PROXY", "RULE-SET,xcidr,X", "RULE-SET,googlecidr,Google", "RULE-SET,netflixcidr,Netflix", "RULE-SET,telegramcidr,Telegram", - "RULE-SET,cncidr,DIRECT", + "RULE-SET,cncidr,Mainland China 🇨🇳", "MATCH,Others", ];