clash for windows 自定义规则

clash for windows 自定义规则

主要是解决某些特殊域名需要用特定科学渠道。但又不想修改配置,因为配置每次更新就会覆盖规则,所以就需要自定义规则mixin

1.开启mixin

open mixin

2.打开mixin的JavaScript文件

2.1默认是YAML,要改成JavaScript

open mixin file

3.编辑mixin

module.exports.parse = async ({content, name, url}, {axios, yaml, notify}) => {
  content.rules.unshift(
    "DOMAIN-SUFFIX,gemini.google.com,SG"
  )
  return content
}
edit mixin file

4.更新profile

update profile

5.检查connection

5.1 close all按钮

清空当前所有已建立的链接,防止因为旧链接的存在,导致mixin看起来不生效

5.2 filter keyword

输入刚才的domain过滤一下,检查科学上网的结果

check connection

结束,可以愉快玩耍
有问题留言

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇