FilterBox 通知滤盒规则

发布于 2020-06-13  643 次阅读


前言:

糊写一通,瞎写一汽,不保证最优解

欢迎在下面讨论更好的写法下面讨论更好的写法

我的一贯思路:拿出有用的而不是屏蔽没用的

短信验证码规则

上世纪老规则

规则有问题,先删除

Emoji

快速导入

{"rules":[{"appCondition":{"appUIDs":[],"type":2},"description":"过滤含常见 emoji 的通知","disable":false,"id":714,"textCondition":{"ignoreCase":true,"regex":"/(\\ud83c[\\udf00-\\udfff])|(\\ud83d[\\udc00-\\ude4f\\ude80-\\udeff])|[\\u2600-\\u2B55]/g","strs":[],"type":3},"timeCondition":{"end":0,"start":0},"type":{"extra_action":{"a":false,"b":[]},"force_mute":false,"include_ongoing":false,"later_time":0,"later_times":[0],"type":0}}]}

规则说明

规则来自 https://moe.best/nodejs-memo/emoji.html

/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g

屏蔽常见 Emoji ,但不全

没测试多少,反正我常用的几个还是能屏蔽的

咸鱼只接受私聊消息

快速导入

 {"rules":[{"appCondition":{"appUIDs":[{"packageName":"com.taobao.idlefish","user":0}],"type":0},"description":"闲鱼只留聊天通知","disable":false,"id":8,"textCondition":{"ignoreCase":true,"regex":"^(?!.发来.+条新消息).$","strs":[],"type":3},"timeCondition":{"end":0,"start":0},"type":{"force_mute":false,"include_ongoing":false,"later_time":0,"type":0}}]}

规则说明

正则表达式

^(?!.*发来.+条新消息).*$

带有白名单的防打扰

快速导入

{"rules":[{"appCondition":{"appUIDs":[{"packageName":"com.tencent.mobileqq","user":0}],"type":0},"description":"带有白名单的防打扰","disable":false,"id":3,"textCondition":{"ignoreCase":true,"regex":"^(?!白名单名称)(?=.*?(@全体成员|有人@我|有新作业|有回执消息)).*$","strs":[],"type":3},"timeCondition":{"end":0,"start":0},"type":{"force_mute":false,"include_ongoing":false,"later_time":0,"later_times":[0],"type":0}}]}

规则说明

默认只处理 QQ 的内容

「白名单名称」需自行修改

关键词为 @全体成员|有人@我|有新作业|有回执消息


啥都不会,还笨