Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
gwq5210 committed Mar 5, 2024
1 parent 28fa73e commit 52e272b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions v2ray/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@ parsers:
mix-object:
dns:
enable: false
- url: https://example.com/profile.yaml
code: |
module.exports.parse = (raw, { yaml }) => {
module.exports.parse = (raw, { axios, yaml, notify, console }) => {
const obj = yaml.parse(raw)
console.log(obj)
var proxy_groups = obj["proxy-groups"]
proxy_groups.forEach((item, index, arr)=>{
if (item.name !== '我的代理') {
item.proxies.unshift('我的代理')
}
})
return yaml.stringify(obj)
}
```

0 comments on commit 52e272b

Please sign in to comment.