Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
tusk.guo committed Mar 5, 2024
1 parent 8895110 commit 28fa73e
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
53 changes: 53 additions & 0 deletions v2ray/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# clash规则

[clash-rules](https://github.com/Loyalsoldier/clash-rules)
[advanced-usage-for-clash](https://docs.mebi.me/docs/advanced-usage-for-clash)
[Parsers-for-clash](https://github.com/iczrac/Parsers-for-clash)
[https://docs.gtk.pw/contents/parser.html](https://docs.gtk.pw/contents/parser.html)

```yml
parsers:
- url: https://example.com/profile.yaml
yaml:
prepend-rules:
- DOMAIN-SUFFIX,baidu.com,我的代理
- DOMAIN-SUFFIX,baidubcr.com,我的代理
- DOMAIN-SUFFIX,baidupan.com,我的代理
- DOMAIN-SUFFIX,baidupcs.com,我的代理
- DOMAIN-SUFFIX,vv.video.qq.com,我的代理
- DOMAIN-SUFFIX,quark.cn,我的代理
- DOMAIN-SUFFIX,aliyun.com,我的代理
- DOMAIN-SUFFIX,yinxiang.com,我的代理
- DOMAIN,fairplay.l.qq.com,我的代理
- DOMAIN,livew.l.qq.com,我的代理
- DOMAIN,vd.l.qq.com,我的代理
- DOMAIN-SUFFIX,myqcloud.com,我的代理
- DOMAIN-SUFFIX,tencent.com,我的代理
- DOMAIN-SUFFIX,tencent-cloud.com,我的代理
- DOMAIN-SUFFIX,tencent-cloud.net,我的代理
- DOMAIN-SUFFIX,tenpay.com,我的代理
- DOMAIN-SUFFIX,wechat.com,我的代理
- DOMAIN-SUFFIX,qqmail.com,我的代理
- DOMAIN-SUFFIX,qq.com,我的代理
- DOMAIN-SUFFIX,servicewechat.com,我的代理
prepend-proxies:
- {name: HK_PROXY, server: you.domain.com, port: 443, type: vmess, uuid: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa, alterId: 0, cipher: auto, tls: true, network: ws, ws-opts: {path: /, headers: {Host: you.domain.com}}}
prepend-proxy-groups:
- name: 直连
type: select
proxies:
- DIRECT
- name: 我的代理
type: select
proxies:
- HK_PROXY
mix-object:
dns:
enable: false
code: |
module.exports.parse = (raw, { yaml }) => {
const obj = yaml.parse(raw)
console.log(obj)
return yaml.stringify(obj)
}
```
5 changes: 5 additions & 0 deletions v2ray/rule_change.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports.parse = (raw, { yaml }) => {
const rawObj = yaml.parse(raw)
rawObj.proxy-groups
return yaml.stringify({ ...rawObj, 'proxy-groups': groups, rules })
}

0 comments on commit 28fa73e

Please sign in to comment.