From 858f4d0b3f5c2e388b20432c511944152f6b4f75 Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Mon, 30 Oct 2023 00:09:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=9F=A5=E4=B9=8E):=20=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20(#1548)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix(知乎):回答底部评论顶部的任意广告推荐 * feat(知乎): 规则优化 --------- Co-authored-by: lisonge close #1533 --- src/apps/com.zhihu.android.ts | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/apps/com.zhihu.android.ts b/src/apps/com.zhihu.android.ts index 45dfae1a..a03261d4 100644 --- a/src/apps/com.zhihu.android.ts +++ b/src/apps/com.zhihu.android.ts @@ -8,14 +8,9 @@ export default defineAppConfig({ key: 0, name: '开屏广告', quickFind: true, - matchLauncher: true, - activityIds: [ - 'com.zhihu.android.app.ui.activity', //匹配所有ui.activity - 'com.zhihu.android.app.feed.AdTransparentHostActivity', - 'com.zhihu.android.ContentActivity', - 'com.zhihu.android.mixshortcontainer.MixShortContainerActivity', - 'com.zhihu.android.mix.activity.ContentMixProfileActivity', - ], + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', rules: 'TextView[id="com.zhihu.android:id/btn_skip"]', snapshotUrls: [ 'https://gkd-kit.gitee.io/import/12707641', // com.zhihu.android.app.ui.activity.LauncherActivity @@ -114,11 +109,13 @@ export default defineAppConfig({ key: 4, matches: 'TextView[text*=`回答`][text*=`关注`] + TextView[text=`×`]', }, - { - key: 5, - matches: - 'TextView[text!=null] + TextView[text*=`赞同`] + View > Image', - }, + // 存在误触,缺乏快照处置,暂时移除 + // 误触快照:https://i.gkd.li/import/13196039 + // { + // key: 5, + // matches: + // 'TextView[text!=null] + TextView[text*=`赞同`] + View > Image', + // }, { key: 6, matches: 'TextView[text$=`的广告`] - Image[id=null]',