From 3debd40ca0c4cea904cab9b8cd2e883c5f115760 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Tue, 19 Mar 2024 17:14:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=9F=A5=E4=B9=8E):=20=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=EF=BC=88=E8=A1=A5=E5=85=85=E3=80=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=A7=84=E5=88=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.zhihu.android.ts | 43 +++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/src/apps/com.zhihu.android.ts b/src/apps/com.zhihu.android.ts index 8b860eb2..610aa70c 100644 --- a/src/apps/com.zhihu.android.ts +++ b/src/apps/com.zhihu.android.ts @@ -3,7 +3,7 @@ import { defineAppConfig } from '../types'; export default defineAppConfig({ id: 'com.zhihu.android', name: '知乎', - deprecatedKeys: [0, 1, 2, 3, 4, 5, 7, 8, 9], + deprecatedKeys: [0, 1, 2, 3, 4, 5, 7, 8, 9, 11], groups: [ { key: 6, @@ -84,34 +84,39 @@ export default defineAppConfig({ }, ], }, - { - key: 11, - name: '全屏广告-会员页面月卡红包', - desc: '点击关闭', - rules: [ - { - activityIds: 'com.zhihu.android.app.ui.activity.MainActivity', - matches: - 'RelativeLayout[childCount=2] > ImageView[index=1][clickable=true]', - exampleUrls: - 'https://m.gkd.li/57941037/335dee89-4b55-40f1-8316-b7b4f86a8ee6', - snapshotUrls: 'https://i.gkd.li/i/12647421', - }, - ], - }, { key: 12, - name: '全屏广告-会员页面广告弹窗', + name: '全屏广告-广告弹窗', desc: '点击关闭', rules: [ { + key: 0, + name: '会员页广告弹窗', activityIds: 'com.zhihu.android.app.ui.activity.MainActivity', - matches: - '[id="com.zhihu.android:id/image"] < RelativeLayout + [id="com.zhihu.android:id/dismiss"]', + matches: '[id="com.zhihu.android:id/dismiss"]', exampleUrls: 'https://m.gkd.li/57941037/9eb78a95-c2dc-4a8b-9b86-f9d0fc0ed6fd', snapshotUrls: 'https://i.gkd.li/i/12707676', }, + { + key: 1, + name: '首页广告弹窗', + quickFind: true, + activityIds: 'com.zhihu.android.app.ui.activity.AdAlphaVideoActivity', + matches: '[vid="tv_ad_close"]', + exampleUrls: + 'https://m.gkd.li/57941037/a5c471b6-dbc7-4150-be52-3ae4a28806e0', + snapshotUrls: 'https://i.gkd.li/i/14648128', + }, + { + key: 2, + name: '会员页红包弹窗', + activityIds: 'com.zhihu.android.app.ui.activity.MainActivity', + matches: '[id="com.zhihu.android:id/floating_close_btn"]', + exampleUrls: + 'https://m.gkd.li/57941037/335dee89-4b55-40f1-8316-b7b4f86a8ee6', + snapshotUrls: 'https://i.gkd.li/i/12647421', + }, ], }, {