Update script.js

This commit is contained in:
xixu-me committed 2024-10-08 00:09:40 +08:00
1 parent 6dfe760a9f
commit a39df14b6e
1 file changed
+68 -68
+68 -68
View File
@@ -172,9 +172,9 @@ const rules = [
"RULE-SET,icloud,iCloud",
"RULE-SET,apple,Apple",
"RULE-SET,google,Google",
"RULE-SET,proxy,Proxy",
"RULE-SET,gfw,Proxy",
"RULE-SET,tld-not-cn,Proxy",
"RULE-SET,proxy,PROXY",
"RULE-SET,gfw,PROXY",
"RULE-SET,tld-not-cn,PROXY",
"RULE-SET,direct,DIRECT",
"RULE-SET,lancidr,DIRECT,no-resolve",
"RULE-SET,cncidr,DIRECT,no-resolve",
@@ -210,13 +210,13 @@ function main(config) {
config["proxy-groups"] = [
{
...groupBaseOption,
name: "Proxy",
name: "PROXY",
type: "select",
proxies: [
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
],
"include-all": true,
icon: "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M18%2C1H6A5%2C5%2C0%2C0%2C0%2C1%2C6V18a5%2C5%2C0%2C0%2C0%2C5%2C5H18a5%2C5%2C0%2C0%2C0%2C5-5V6A5%2C5%2C0%2C0%2C0%2C18%2C1Zm3%2C17a3%2C3%2C0%2C0%2C1-3%2C3H6a3%2C3%2C0%2C0%2C1-3-3V6A3%2C3%2C0%2C0%2C1%2C6%2C3H18a3%2C3%2C0%2C0%2C1%2C3%2C3ZM18%2C7H12.82A3%2C3%2C0%2C0%2C0%2C7.18%2C7H6A1%2C1%2C0%2C0%2C0%2C6%2C9H7.18a3%2C3%2C0%2C0%2C0%2C5.64%2C0H18a1%2C1%2C0%2C0%2C0%2C0-2ZM10%2C9a1%2C1%2C0%2C1%2C1%2C1-1A1%2C1%2C0%2C0%2C1%2C10%2C9Zm8%2C6H16.82a3%2C3%2C0%2C0%2C0-5.64%2C0H6a1%2C1%2C0%2C0%2C0%2C0%2C2h5.18a3%2C3%2C0%2C0%2C0%2C5.64%2C0H18a1%2C1%2C0%2C0%2C0%2C0-2Zm-4%2C2a1%2C1%2C0%2C1%2C1%2C1-1A1%2C1%2C0%2C0%2C1%2C14%2C17Z%22%2F%3E%3C%2Fsvg%3E",
@@ -226,12 +226,12 @@ function main(config) {
name: "iCloud",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"Direct",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
"DIRECT",
],
"include-all": true,
icon: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons@develop/icons/icloud.svg",
@@ -241,11 +241,11 @@ function main(config) {
name: "OpenAI",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
],
"include-all": true,
icon: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons@develop/icons/openai.svg",
@@ -255,12 +255,12 @@ function main(config) {
name: "Binance",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"Direct",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
"DIRECT",
],
"include-all": true,
icon: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons@develop/icons/binance.svg",
@@ -270,11 +270,11 @@ function main(config) {
name: "Telegram",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
],
"include-all": true,
icon: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons@develop/icons/telegram.svg",
@@ -284,12 +284,12 @@ function main(config) {
name: "bilibili",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"Direct",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
"DIRECT",
],
"include-all": true,
icon: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons@develop/icons/bilibili.svg",
@@ -299,11 +299,11 @@ function main(config) {
name: "YouTube",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
],
"include-all": true,
icon: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons@develop/icons/youtube.svg",
@@ -313,12 +313,12 @@ function main(config) {
name: "Apple",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"Direct",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
"DIRECT",
],
"include-all": true,
icon: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons@develop/icons/apple.svg",
@@ -328,11 +328,11 @@ function main(config) {
name: "Google",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
],
"include-all": true,
icon: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons@develop/icons/google.svg",
@@ -342,12 +342,12 @@ function main(config) {
name: "Microsoft",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"Direct",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
"DIRECT",
],
"include-all": true,
icon: "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M2%2022h9.5v-9.5H2V22zm0-10.5h9.5V2H2v9.5zM12.5%202v9.5H22V2h-9.5zm0%2020H22v-9.5h-9.5V22z%22%2F%3E%3C%2Fsvg%3E",
@@ -357,19 +357,19 @@ function main(config) {
name: "Others",
type: "select",
proxies: [
"Proxy",
"Auto",
"Fallback",
"Load balancing (Consistent hashing)",
"Load balancing (Round robin)",
"Direct",
"PROXY",
"AUTO",
"FALLBACK",
"LOAD BALANCING (Consistent hashing)",
"LOAD BALANCING (Round robin)",
"DIRECT",
],
"include-all": true,
icon: "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20enable-background%3D%22new%200%200%2050%2050%22%20viewBox%3D%220%200%2050%2050%22%3E%3Cpath%20d%3D%22M48.75125%2C24.3071c-0.18-0.2-4.47-5.01-10.86-8.08c-1.62%2C2.61-2.5%2C5.63-2.5%2C8.74s0.88%2C6.13%2C2.5%2C8.75%0D%0A%09%09c6.39-3.07%2C10.68-7.88%2C10.86-8.08C49.08125%2C25.2571%2C49.08125%2C24.6871%2C48.75125%2C24.3071z%20M41.19125%2C25.9671h-0.11%0D%0A%09%09c-0.55%2C0-1-0.44-1-1c0-0.55%2C0.45-1%2C1-1h0.11c0.56%2C0%2C1%2C0.45%2C1%2C1C42.19125%2C25.5271%2C41.75125%2C25.9671%2C41.19125%2C25.9671z%22%2F%3E%3Cpath%20d%3D%22M33.38693%2C24.9709c0-3.3891%2C0.9231-6.6905%2C2.6417-9.5661c-2.1559-0.8651-4.2976-1.3969-6.4378-1.5925l1.24042-1.2752%0D%0A%09%09c0.77-0.79%2C0.83-2.03%2C0.12-2.82c-1.69072-1.9093-7.45192-1.9029-9.3-0.19c-0.85162%2C0.7894-0.91052%2C2.1279-0.08%2C3l1.63218%2C1.7334%0D%0A%09%09c-5.9053%2C1.3372-10.8655%2C4.9449-13.74218%2C7.4666l-6.75-6.75c-0.29-0.29-0.72-0.37-1.09-0.22c-0.37%2C0.16-0.62%2C0.52-0.62%2C0.93v18.74%0D%0A%09%09c0%2C0.4%2C0.24%2C0.77%2C0.61%2C0.92c0.37%2C0.16%2C0.8%2C0.08%2C1.09-0.2l6.93-6.79c2.86148%2C2.4709%2C7.748%2C5.9903%2C13.52868%2C7.3203l-1.57868%2C1.7797%0D%0A%09%09c-0.92%2C0.96-0.68%2C1.86-0.53%2C2.21c0.66%2C1.53%2C3.3%2C2.07%2C5.36%2C2.07c1.2%2C0%2C3.4-0.19%2C4.53-1.46c1.22-1.32%2C0.08-2.67-0.92-3.87%0D%0A%09%09c-0.07722-0.0919-0.16442-0.2012-0.24532-0.2986c2.0497-0.2131%2C4.1415-0.7431%2C6.2487-1.5789%0D%0A%09%09C34.30883%2C31.6557%2C33.38693%2C28.3572%2C33.38693%2C24.9709z%22%2F%3E%3C%2Fsvg%3E",
},
{
...groupBaseOption,
name: "Auto",
name: "AUTO",
type: "url-test",
tolerance: 100,
"include-all": true,
@@ -377,14 +377,14 @@ function main(config) {
},
{
...groupBaseOption,
name: "Fallback",
name: "FALLBACK",
type: "fallback",
"include-all": true,
icon: "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M10.5%2C9.5h-1v-1a1%2C1%2C0%2C0%2C0-2%2C0v1h-1a1%2C1%2C0%2C0%2C0%2C0%2C2h1v1a1%2C1%2C0%2C0%2C0%2C2%2C0v-1h1a1%2C1%2C0%2C0%2C0%2C0-2Zm12.43%2C2.15-.06-.11a.61.61%2C0%2C0%2C0-.07-.14L20.4%2C8.2A3%2C3%2C0%2C0%2C0%2C18%2C7H16V6a3%2C3%2C0%2C0%2C0-3-3H4A3%2C3%2C0%2C0%2C0%2C1%2C6V17a1%2C1%2C0%2C0%2C0%2C1%2C1H3a3%2C3%2C0%2C0%2C0%2C6%2C0h6a3%2C3%2C0%2C0%2C0%2C6%2C0h1a1%2C1%2C0%2C0%2C0%2C1-1V12A1%2C1%2C0%2C0%2C0%2C22.93%2C11.65ZM6%2C19a1%2C1%2C0%2C1%2C1%2C1-1A1%2C1%2C0%2C0%2C1%2C6%2C19Zm8-3H8.22a3%2C3%2C0%2C0%2C0-4.44%2C0H3V6A1%2C1%2C0%2C0%2C1%2C4%2C5h9a1%2C1%2C0%2C0%2C1%2C1%2C1Zm2-7h2a1%2C1%2C0%2C0%2C1%2C.8.4L20%2C11H16Zm2%2C10a1%2C1%2C0%2C1%2C1%2C1-1A1%2C1%2C0%2C0%2C1%2C18%2C19Zm3-3h-.78A3%2C3%2C0%2C0%2C0%2C16%2C15.78V13h5Z%22%2F%3E%3C%2Fsvg%3E",
},
{
...groupBaseOption,
name: "Load balancing (Consistent hashing)",
name: "LOAD BALANCING (Consistent hashing)",
type: "load-balance",
strategy: "consistent-hashing",
"include-all": true,
@@ -392,7 +392,7 @@ function main(config) {
},
{
...groupBaseOption,
name: "Load balancing (Round robin)",
name: "LOAD BALANCING (Round robin)",
type: "load-balance",
strategy: "round-robin",
"include-all": true,