Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关键字剔除节点功能,或嗑支持正则 #903

Open
Ymy214 opened this issue Apr 21, 2024 · 2 comments
Open

关键字剔除节点功能,或嗑支持正则 #903

Ymy214 opened this issue Apr 21, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Ymy214
Copy link

Ymy214 commented Apr 21, 2024

功能描述 / Feature description

建议在右键配置文件选项中加入排除节点功能,可支持关键字或正则,以实现订阅转换站的剔除高倍率节点功能

使用场景 / Use case

剔除高倍率x25节点,防止自动选择selector使用高倍节点浪费流量

@Ymy214 Ymy214 added the enhancement New feature or request label Apr 21, 2024
@ChaosAlphard
Copy link

可以用script模式,从自动选择分组里面把高倍节点直接删掉

function main(params) {
  params['proxy-groups'] = params['proxy-groups'].map(it => {
    if (it.type != "url-test" || it.proxies == null) {
      return it
    }
    it.proxies = it.proxies.filter(name => !name.match(/这里写正则表达式/g))
    return it
  })

  return params;
}

@junlongzzz
Copy link

订阅转换站有了支持按照正则剔除节点,这里还要加上岂不是重复了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants