From 86fce9e11ca2479b473aad37cb03988914579e90 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Sat, 9 Mar 2024 22:14:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=8C=E4=B8=8A=E5=85=AC=E4=BA=A4):=20?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A=E3=80=81=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=EF=BC=88=E8=A1=A5=E5=85=85=E8=A7=84=E5=88=99?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.mygolbs.mybus.ts | 49 ++++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/src/apps/com.mygolbs.mybus.ts b/src/apps/com.mygolbs.mybus.ts index b6756626..09148c0e 100644 --- a/src/apps/com.mygolbs.mybus.ts +++ b/src/apps/com.mygolbs.mybus.ts @@ -4,6 +4,35 @@ export default defineAppConfig({ id: 'com.mygolbs.mybus', name: '掌上公交', groups: [ + { + key: 0, + name: '开屏广告', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + actionMaximumKey: 0, + rules: [ + { + key: 0, + quickFind: true, + matches: '[text*="跳过"][text.length<10][visibleToUser=true]', + exampleUrls: + 'https://m.gkd.li/57941037/f1099ff6-38aa-4393-8cf5-418ab8ffd20e', + snapshotUrls: 'https://i.gkd.li/i/12745634', + }, + { + key: 1, + matches: + 'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView', + exampleUrls: + 'https://m.gkd.li/57941037/8b0c3f96-ae36-4799-87c2-1ea37c3d2d4c', + snapshotUrls: [ + 'https://i.gkd.li/i/12790485', + 'https://i.gkd.li/i/14546388', + ], + }, + ], + }, { key: 1, name: '分段广告-广告卡片', @@ -75,13 +104,14 @@ export default defineAppConfig({ { key: 2, name: '全屏广告-广告弹窗', - activityIds: [ - 'com.mygolbs.mybus.mapsearch.poisearch.PoiSearchActivity', - 'com.mygolbs.mybus.NewHomePageActivity', - ], rules: [ { + key: 0, name: '点击右上角x关闭图标', + activityIds: [ + 'com.mygolbs.mybus.mapsearch.poisearch.PoiSearchActivity', + 'com.mygolbs.mybus.NewHomePageActivity', + ], matches: 'FrameLayout[childCount=2] > FrameLayout[childCount>4] > FrameLayout[index=1][visibleToUser=true]', snapshotUrls: [ @@ -89,6 +119,17 @@ export default defineAppConfig({ 'https://i.gkd.li/i/14219270', ], }, + { + key: 1, + quickFind: true, + activityIds: + 'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity', + matches: + 'ImageView[childCount=0] < LinearLayout < @LinearLayout[clickable=true] - * > [text="反馈"]', + exampleUrls: + 'https://m.gkd.li/57941037/ec768f05-5431-4684-af40-a7987dff2ec6', + snapshotUrls: 'https://i.gkd.li/i/14546373', + }, ], }, {