Skip to content

Commit 94d48da

Browse files
committed
增加Github分组
1 parent 38b26b5 commit 94d48da

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Mihomo/global_script.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const enable = true
1919
const ruleOptions = {
2020
apple: true, // 苹果服务
2121
microsoft: true, // 微软服务
22+
github: true, // Github服务
2223
google: true, // Google服务
2324
openai: true, // 国外AI和GPT
2425
spotify: true, // Spotify
@@ -632,6 +633,18 @@ function main(config) {
632633
})
633634
}
634635

636+
if (ruleOptions.microsoft) {
637+
rules.push('GEOSITE,github,Github')
638+
config['proxy-groups'].push({
639+
...groupBaseOption,
640+
name: 'Github',
641+
type: 'select',
642+
proxies: ['默认节点', ...proxyGroupsRegionNames, '直连'],
643+
url: 'https://github.com/robots.txt',
644+
icon: 'https://fastly.jsdelivr.net/gh/Koolson/Qure/IconSet/Color/Github.png',
645+
})
646+
}
647+
635648
if (ruleOptions.japan) {
636649
rules.push(
637650
'RULE-SET,category-bank-jp,日本网站',

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@
4343
"typescript": "^5.6.3",
4444
"vite-plugin-vitepress-auto-sidebar": "^1.7.0",
4545
"vue": "^3.5.12"
46-
}
46+
},
47+
"packageManager": "pnpm@9.15.2+sha512.93e57b0126f0df74ce6bff29680394c0ba54ec47246b9cf321f0121d8d9bb03f750a705f24edc3c1180853afd7c2c3b94196d0a3d53d3e069d9e2793ef11f321"
4748
}

0 commit comments

Comments
 (0)