- Notifications
You must be signed in to change notification settings - Fork2
tanmoumou252/NSFWruleset
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Some triage rulesrule-set for NSFW-website.It adapted toAkasha Terminal clash, and can be used in custom local profiles, see the anchor referencesdocumentation for simplification.
& anchor and* alias, can be used to reference,& used to create the anchor,<< that merge to the current data,* used to reference anchor
p:&ptype:httpinterval:3600health-check:enable:trueurl:https://www.gstatic.com/generate_204interval:300proxy-providers:provider1:<<:*purl:""path:./proxy_providers/provider1.yamlprovider2:<<:*ptype:filepath:./proxy_providers/provider2.yaml
I also have a few local profiles in my repository, with Chinese comments, the local profile is basically compatible with each client's clash core, no matter if it's a router or an Android or a computer.
I'm new here,and still learning how it work.
I put this on github to optimize the use of local profile which you can get fromhope140 andI.
- Create a new provider under
rule-providers, and fill in the url with the address ofNSFW.yaml. eg.
I`m your provider now. - Scroll to rules and add
- RULE-SET, NSFW, proxy groups you set, as shown in the picture.
- Now go to update your local profile, if no error is reported, you can start your journey of nsfw.
- The yaml grammar pays great attention to basicalignment. You can check whether there is aspace after the colon of the line of code that reports the error.
- Besides,case sensitive,eg.
rule-providers: NSFW: #here are some capital letters type: http behavior: classical path: ./RuleSet/NSFW.yaml url: https://raw.githubusercontent.com/tanmoumou252/NSFW-website-rule-for-Clash/main/NSFW.yaml interval: 86400 rules: - RULE-SET,nsfw,🌍 GlobalMedia #here are some lowercase lettersThe
- This English document is written by Google Translate and DeepL Translate.
- As we all know,most of the people who use clash, they speak Ch**ese.People in other places rarely use such tools, of course we know that parts of the US restrict tiktok, Iran controls it even more, it's like Ch**a all over again, if you ask me. Others just use it because Netflix Disney doesn't have the rights to a TV show or movie in their area.
- In other words, I don’t really need to write English documents, and now the function of translating web pages is so developed.
- Whatever,hope u like that.
一些适配虚空终端 clash的"你懂的"网页的分流规则rule-set,可以在本地配置中使用,要简化可以参看锚点引用文档
& 锚点和* 别名,可以用来引用,& 用来建立锚点,<<表示合并到当前数据,* 用来引用锚点
p:&ptype:httpinterval:3600health-check:enable:trueurl:https://www.gstatic.com/generate_204interval:300proxy-providers:provider1:<<:*purl:""path:./proxy_providers/provider1.yamlprovider2:<<:*ptype:filepath:./proxy_providers/provider2.yaml
我的仓库里也有几个本地配置模板,带中文注释,本地配置基本上各个客户端的clash核心都兼容,不管是路由器的还是安卓的或是电脑的
初来乍到,还在学习如何去使用github
因为hope140给到的rule-set预设中对NSFW的网页照顾不到,于是萌生了照猫画虎的想法,干脆将我收藏夹里的好东西全都做成规则发到项目里
- 在rule-providers下新建一个服务商,在服务商的url里填上这份NSFW.yaml的地址,就像这个图片这样

好的那么现在我是你的规则服务商了 - 在rules这里,添加
- RULE-SET,NSFW,你设置的proxy-groups,就像图片这样
- 现在去刷新|更新你的本地配置没有报错,那么就可以开始上路了
- yaml语法很注重基本的空格,或者应该说对齐,有报错很可能是你没对齐,报错那一行的冒号后面可以检查下是不是有空格
- 以及,大小写要统一,比如
rule-providers: NSFW: #这儿的nsfw是大写 type: http behavior: classical path: ./RuleSet/NSFW.yaml url: https://raw.githubusercontent.com/tanmoumou252/NSFW-website-rule-for-Clash/main/NSFW.yaml interval: 86400 rules: - RULE-SET,nsfw,🌍 国外媒体 #这儿的nsfw是小写上面这段代码
不论如何,希望它能帮到你的忙
About
使用规则对nsfw网页进行分流(假如旧分流一刀切的匹配全局直连的话)
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.