feat(知乎) 局部广告-信息流广告(补充规则) (#31)

This commit is contained in:
AIsouler
2024-02-10 09:56:18 +08:00
committed by GitHub

View File

@@ -128,12 +128,11 @@ export default defineAppConfig({
key: 14, key: 14,
name: '局部广告-信息流广告', name: '局部广告-信息流广告',
desc: '点击关闭', desc: '点击关闭',
activityIds: [
'com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity',
],
rules: [ rules: [
{ {
key: 0, key: 0,
activityIds:
'com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity',
matches: matches:
'[text*="广告"] +(2,3) ImageView[clickable=true][visibleToUser=true]', '[text*="广告"] +(2,3) ImageView[clickable=true][visibleToUser=true]',
exampleUrls: exampleUrls:
@@ -146,12 +145,21 @@ export default defineAppConfig({
{ {
key: 1, key: 1,
quickFind: true, quickFind: true,
activityIds:
'com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity',
matches: matches:
'@ImageView[clickable=true][visibleToUser=true] + * > [text*="广告"]', '@ImageView[clickable=true][visibleToUser=true] + * > [text*="广告"]',
exampleUrls: exampleUrls:
'https://m.gkd.li/45487685/c7d89c48-91d1-4658-b22e-d2626117be8b', 'https://m.gkd.li/45487685/c7d89c48-91d1-4658-b22e-d2626117be8b',
snapshotUrls: 'https://i.gkd.li/import/14206988', snapshotUrls: 'https://i.gkd.li/import/14206988',
}, },
{
key: 2,
activityIds:
'com.zhihu.android.mix.activity.ContentMixProfileActivity',
matches: '[text*="广告"] +2 [text="×"]',
snapshotUrls: 'https://i.gkd.li/import/14220104',
},
], ],
}, },