From 32c7b4f6a9c53a44a70bd9d0af70db9fc53850f0 Mon Sep 17 00:00:00 2001 From: DeepChirp <66902050+DeepChirp@users.noreply.github.com> Date: Sun, 6 Oct 2024 19:30:37 +0800 Subject: [PATCH] =?UTF-8?q?perf(Reddit):=20=E5=85=B6=E4=BB=96-=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E8=AE=A2=E9=98=85=E7=A4=BE=E5=8C=BA=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=20(#391)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DeepChirp <66902050+DeepChirp@users.noreply.github.com> --- src/apps/com.reddit.frontpage.ts | 16 ++++++++++------ src/globalDefaultApps.ts | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/apps/com.reddit.frontpage.ts b/src/apps/com.reddit.frontpage.ts index 894c8ccd..44fe73c3 100644 --- a/src/apps/com.reddit.frontpage.ts +++ b/src/apps/com.reddit.frontpage.ts @@ -6,15 +6,19 @@ export default defineGkdApp({ groups: [ { key: 3, - name: '更新提示-社区消息', + name: '其他-关闭订阅社区消息提示', + desc: '自动点击[Not Now]', fastQuery: true, - matchTime: 10000, - actionMaximum: 1, - resetMatch: 'app', rules: [ { - matches: '[id="com.reddit.frontpage:id/cancel_button"]', - snapshotUrls: 'https://i.gkd.li/i/13649914', + activityIds: 'com.reddit.launch.main.MainActivity', + matches: + '[vid="sheet_container"] > [vid="cancel_button"][text="Not Now"][clickable=true]', + snapshotUrls: [ + 'https://i.gkd.li/i/13649914', + 'https://i.gkd.li/i/17269009', + ], + exampleUrls: 'https://e.gkd.li/b640f2c9-4564-420f-8a2f-20f461032f3d', }, ], }, diff --git a/src/globalDefaultApps.ts b/src/globalDefaultApps.ts index f21967fe..30f4d90c 100644 --- a/src/globalDefaultApps.ts +++ b/src/globalDefaultApps.ts @@ -117,6 +117,7 @@ export const blackListAppIDs: string[] = [ 'mufanc.tools.applock', // AppLock 'com.gankes.tsbattery', // TSBattery 'com.oasisfeng.nevo.xposed', // 女娲石 + 'com.reddit.frontpage', // Reddit 'com.canghai.haoka', 'com.xy.td',