feat(知乎): 分段广告(优化规则)

This commit is contained in:
AIsouler
2024-03-02 13:43:56 +08:00
parent 97664ce708
commit ec96c3165b

View File

@@ -20,30 +20,33 @@ export default defineAppConfig({
{ {
key: 0, key: 0,
quickFind: true, quickFind: true,
matches: '@ImageView[clickable=true] -n [text="广告"]', matches: '@ImageView[clickable=true] -4 [text="广告"]',
snapshotUrls: 'https://i.gkd.li/i/13849671', snapshotUrls: 'https://i.gkd.li/i/13849671',
}, },
{ {
key: 1, key: 1,
quickFind: true,
matches: matches:
'@ImageView[id=null][clickable=true] -2 ViewGroup > [text$="广告"]', '@ImageView[id=null][clickable=true] -(2,3) * > [text*="广告"]',
exampleUrls: exampleUrls:
'https://m.gkd.li/57941037/f6498773-af55-4ba9-96fa-4c0597523d55', 'https://m.gkd.li/57941037/f6498773-af55-4ba9-96fa-4c0597523d55',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/i/12647525', 'https://i.gkd.li/i/12647525',
'https://i.gkd.li/i/14178516', //activityId: com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity 'https://i.gkd.li/i/14178516',
'https://i.gkd.li/i/13849442',
'https://i.gkd.li/i/14178979',
], ],
}, },
{ {
key: 2, key: 2,
quickFind: true, quickFind: true,
matches: '@ImageView[clickable=true] -(2,3) * > [text*="广告"]', matches: '@ImageView[clickable=true] < * - * > [text*="广告"]',
snapshotUrls: [
'https://i.gkd.li/i/13849442',
'https://i.gkd.li/i/14178979',
],
exampleUrls: exampleUrls:
'https://m.gkd.li/57941037/65e9f31a-e80f-4996-9621-1b8fd92940d6', 'https://m.gkd.li/57941037/c52e22c6-987e-46c2-a4ca-e1182972ed94',
snapshotUrls: [
'https://i.gkd.li/i/14321041',
'https://i.gkd.li/i/14468152',
],
}, },
{ {
key: 3, key: 3,
@@ -51,19 +54,9 @@ export default defineAppConfig({
matches: '@ViewGroup[clickable=true] <4 * -3 * >2 [text*="广告"]', matches: '@ViewGroup[clickable=true] <4 * -3 * >2 [text*="广告"]',
snapshotUrls: 'https://i.gkd.li/i/14192451', snapshotUrls: 'https://i.gkd.li/i/14192451',
}, },
{
key: 4,
quickFind: true,
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
matches:
'[vid="dot_text_layout"] + [vid="menu_container"] > [vid="menu"]',
exampleUrls:
'https://m.gkd.li/57941037/689c77eb-9026-44db-b22e-d890961a0ad6',
snapshotUrls: 'https://i.gkd.li/i/14321041',
},
{ {
key: 90, key: 90,
preKeys: [0, 1, 2, 3, 4], preKeys: [0, 1, 2, 3],
quickFind: true, quickFind: true,
matches: '@[clickable=true] >3 [text$="不感兴趣"]', matches: '@[clickable=true] >3 [text$="不感兴趣"]',
snapshotUrls: 'https://i.gkd.li/i/13849689', snapshotUrls: 'https://i.gkd.li/i/13849689',