feat: 通知提示(补充字段)

This commit is contained in:
aisouler
2024-02-06 22:25:41 +08:00
parent 19df630625
commit a40d1f7f38
123 changed files with 371 additions and 152 deletions

View File

@@ -7,7 +7,7 @@ export default defineAppConfig({
{
key: 1,
name: '分段广告-信息流广告',
desc: '自动点击更多->不感兴趣',
desc: '自动点击"更多"->"不感兴趣"',
activityIds: [
'com.tencent.news.activity.SplashActivity',
'com.miui.home.launcher.Launcher',
@@ -15,19 +15,19 @@ export default defineAppConfig({
rules: [
{
key: 0,
name: '点击更多按钮',
name: '点击"更多"按钮',
matches:
'FrameLayout[id="android:id/content"][childCount=1] >n [text="广告"] +n [id="com.tencent.news:id/dislike_streamAd_more"]',
snapshotUrls: [
'https://i.gkd.li/import/12755834',
'https://i.gkd.li/import/12755852', // 使用 FrameLayout[id="android:id/content"][childCount=1] 进行限定,防止点击更多按钮后继续触发规则
'https://i.gkd.li/import/12755852', // 使用 FrameLayout[id="android:id/content"][childCount=1] 进行限定,防止点击"更多"按钮后继续触发规则
'https://i.gkd.li/import/12755914', // activityId: 'com.miui.home.launcher.Launcher'
],
},
{
preKeys: [0],
key: 1,
name: '点击不感兴趣按钮',
name: '点击"不感兴趣"按钮',
matches:
'[id="com.tencent.news:id/dislike_reason_view"] >n [text="不感兴趣"]',
snapshotUrls: 'https://i.gkd.li/import/12755852',
@@ -51,6 +51,9 @@ export default defineAppConfig({
enable: false,
key: 10,
name: '通知提示-请求通知权限弹窗',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
activityIds: 'com.tencent.news.activity.SplashActivity',
rules: '[text="开启通知"] + [text="先不了"]',
snapshotUrls: 'https://i.gkd.li/import/12755824',