From 5df28b0282e0673ab46695a0467e406642d27a9b Mon Sep 17 00:00:00 2001 From: walklty <47232102+walklty@users.noreply.github.com> Date: Fri, 10 Nov 2023 00:42:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(NGA=E7=8E=A9=E5=AE=B6=E7=A4=BE=E5=8C=BA):?= =?UTF-8?q?=20=E8=B0=83=E6=95=B4=E5=BC=80=E5=B1=8F=E8=A7=84=E5=88=99,=20?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E5=8D=A1=E7=89=87=E5=B9=BF=E5=91=8A=20(#1973?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #1964 --- src/apps/gov.pianzong.androidnga.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/apps/gov.pianzong.androidnga.ts b/src/apps/gov.pianzong.androidnga.ts index ec088c21..93ad7de1 100644 --- a/src/apps/gov.pianzong.androidnga.ts +++ b/src/apps/gov.pianzong.androidnga.ts @@ -8,11 +8,9 @@ export default defineAppConfig({ key: 0, name: '开屏广告', quickFind: true, - matchLauncher: true, - activityIds: [ - 'gov.pianzong.androidnga.activity.LoadingActivity', - 'gov.pianzong.androidnga.activity.WarmstartActivity', - ], + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', rules: [ '[id="gov.pianzong.androidnga:id/iv_tg_ad"]', '[id="gov.pianzong.androidnga:id/ksad_splash_circle_skip_view"]', @@ -34,7 +32,7 @@ export default defineAppConfig({ { key: 2, name: '话题-帖子列表广告', - desc: '点击卡片右下角x按钮关闭广告', + desc: '点击卡片x按钮关闭广告', activityIds: 'gov.pianzong.androidnga.activity.forumdetail.ForumDetailActivity', rules: [ @@ -47,6 +45,11 @@ export default defineAppConfig({ 'TextView[text!=null] - ImageView < LinearLayout[childCount=2] + FrameLayout[childCount=1] > ImageView[id=null]', snapshotUrls: ['https://gkd-kit.gitee.io/import/12706140'], }, + { + matches: + '[text="广告"] - [id="gov.pianzong.androidnga:id/iv_information_ad_close"]', + snapshotUrls: ['https://i.gkd.li/import/13303236'], + }, ], }, {