1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
| parsers: - reg: ^.*$ code: | module.exports.parse = (raw, { yaml }) => { const rawObj = yaml.parse(raw) const groups = [] const rules = [] return yaml.stringify({ ...rawObj, 'proxy-groups': groups, rules }) } yaml: prepend-proxy-groups: - name: Proxy type: select - name: 🇯🇵日本流媒 type: select - name: 🤖AI应用 type: select - name: 📲TG消息 type: select - name: 🛑广告拦截 type: select proxies: - REJECT - name: 🧿直连 type: select proxies: - DIRECT commands: - proxy-groups.Proxy.proxies=[]proxyNames - proxy-groups.🇯🇵日本流媒.proxies=[]proxyNames|^(.*)(日本|JP|Japan|Osaka|Tokyo|樱花|霓虹|xtom|🇯🇵)+(.*)$ - proxy-groups.🤖AI应用.proxies=[]proxyNames|^(.*)(美国|US|UnitedStates|United States|凤凰城|洛杉矶|圣何塞|San Jose|Los Angeles|Phoenix|🇺🇸)+(.*)$ - proxy-groups.📲TG消息.proxies=[]proxyNames|^(.*)(新加坡|SG|狮城|坡|Singapore|SGP|🇸🇬)+(.*)$ - proxy-groups.🇯🇵日本流媒.proxies.999+Proxy - proxy-groups.🤖AI应用.proxies.999+Proxy - proxy-groups.📲TG消息.proxies.999+Proxy prepend-rules: - "AND,(AND,(DST-PORT,443),(NETWORK,UDP)),(NOT,((GEOIP,CN))),🛑广告拦截" - DOMAIN-SUFFIX,baomitu.com,🧿直连 - DOMAIN-SUFFIX,qhimg.com,🧿直连 - GEOSITE,sogou,🛑广告拦截 - GEOSITE,qihoo360,🛑广告拦截 - DOMAIN-SUFFIX,palworldgame.com,🛑广告拦截 - DOMAIN-KEYWORD,pocketpair,🛑广告拦截 - DOMAIN-SUFFIX,aic4d.com,🧿直连 - DOMAIN-SUFFIX,jp,🇯🇵日本流媒 - GEOSITE,abema,🇯🇵日本流媒 - GEOSITE,niconico,🇯🇵日本流媒 - GEOSITE,dmm,🇯🇵日本流媒 - GEOSITE,hulu,🇯🇵日本流媒 - GEOSITE,pixiv,🇯🇵日本流媒 - DOMAIN-KEYWORD,asobistage,🇯🇵日本流媒 - GEOSITE,apple,🇯🇵日本流媒 - GEOSITE,openai,🤖AI应用 - DOMAIN-SUFFIX,bard.google.com,🤖AI应用 - DOMAIN-SUFFIX,g4f.icu,🤖AI应用 - DOMAIN-KEYWORD,kaspersky,Proxy - GEOSITE,category-scholar-!cn,Proxy - GEOSITE,youtube,Proxy - GEOSITE,google,Proxy - GEOSITE,bilibili@!cn,Proxy - GEOSITE,xbox,Proxy - GEOSITE,microsoft@cn,🧿直连 - GEOSITE,microsoft,Proxy - GEOSITE,telegram,📲TG消息 - GEOSITE,microsoft,Proxy - GEOSITE,private,🧿直连 - GEOSITE,steam@cn,🧿直连 - GEOSITE,steam,Proxy - GEOSITE,steamunlocked,Proxy - GEOSITE,category-games@cn,🧿直连 - GEOSITE,epicgames,🧿直连 - DOMAIN-SUFFIX,cn,🧿直连 - GEOSITE,geolocation-!cn,Proxy - GEOSITE,cn,🧿直连 - GEOIP,private,🧿直连,no-resolve - GEOIP,telegram,📲TG消息 - GEOIP,google,Proxy - GEOIP,twitter,Proxy - GEOIP,CN,🧿直连 - MATCH,Proxy
|