mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-24 02:35:25 +08:00
perf: 知乎
This commit is contained in:
@@ -9,16 +9,13 @@ export default defineGkdApp({
|
|||||||
name: '分段广告-信息流广告',
|
name: '分段广告-信息流广告',
|
||||||
desc: '点击关闭-点击内容不感兴趣',
|
desc: '点击关闭-点击内容不感兴趣',
|
||||||
fastQuery: true,
|
fastQuery: true,
|
||||||
activityIds: [
|
|
||||||
'com.zhihu.android.mixshortcontainer.MixShortContainerActivity',
|
|
||||||
'com.zhihu.android.app.ui.activity.HostActivity',
|
|
||||||
'com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity',
|
|
||||||
'com.zhihu.android.ContentActivity',
|
|
||||||
'com.zhihu.android.app.ui.activity.MainActivity',
|
|
||||||
],
|
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
|
activityIds: [
|
||||||
|
'com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity',
|
||||||
|
'com.zhihu.android.ContentActivity',
|
||||||
|
],
|
||||||
matches:
|
matches:
|
||||||
'@ImageView[clickable=true][visibleToUser=true] -(1,2) TextView[childCount=0][id=null][text=null][desc=null] <n * >n [text*="广告"][childCount=0][id=null][desc=null]',
|
'@ImageView[clickable=true][visibleToUser=true] -(1,2) TextView[childCount=0][id=null][text=null][desc=null] <n * >n [text*="广告"][childCount=0][id=null][desc=null]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
@@ -27,6 +24,9 @@ export default defineGkdApp({
|
|||||||
'https://i.gkd.li/i/14178516',
|
'https://i.gkd.li/i/14178516',
|
||||||
'https://i.gkd.li/i/13849442',
|
'https://i.gkd.li/i/13849442',
|
||||||
'https://i.gkd.li/i/14178979',
|
'https://i.gkd.li/i/14178979',
|
||||||
|
'https://i.gkd.li/i/14178980',
|
||||||
|
'https://i.gkd.li/i/14206949',
|
||||||
|
'https://i.gkd.li/i/14206988',
|
||||||
],
|
],
|
||||||
excludeSnapshotUrls: [
|
excludeSnapshotUrls: [
|
||||||
'https://i.gkd.li/i/17002118',
|
'https://i.gkd.li/i/17002118',
|
||||||
@@ -36,25 +36,34 @@ export default defineGkdApp({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 2,
|
key: 2,
|
||||||
|
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
|
||||||
matches: '@ImageView[clickable=true] < * - * > [text*="广告"]',
|
matches: '@ImageView[clickable=true] < * - * > [text*="广告"]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
|
'https://i.gkd.li/i/14296163',
|
||||||
'https://i.gkd.li/i/14321041',
|
'https://i.gkd.li/i/14321041',
|
||||||
'https://i.gkd.li/i/14468152',
|
'https://i.gkd.li/i/14468152',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 3,
|
key: 3,
|
||||||
|
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
|
||||||
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,
|
key: 4,
|
||||||
|
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
|
||||||
matches: '@ViewGroup[clickable=true] <3 * < * -3 * >2 [text*="广告"]',
|
matches: '@ViewGroup[clickable=true] <3 * < * -3 * >2 [text*="广告"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/i/14730741',
|
snapshotUrls: 'https://i.gkd.li/i/14730741',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
preKeys: [0, 2, 3, 4],
|
preKeys: [0, 2, 3, 4],
|
||||||
key: 90,
|
key: 90,
|
||||||
|
activityIds: [
|
||||||
|
'com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity',
|
||||||
|
'com.zhihu.android.ContentActivity',
|
||||||
|
'com.zhihu.android.app.ui.activity.MainActivity',
|
||||||
|
],
|
||||||
matches: '@[clickable=true] >3 [text$="不感兴趣"]',
|
matches: '@[clickable=true] >3 [text$="不感兴趣"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/i/13849689',
|
snapshotUrls: 'https://i.gkd.li/i/13849689',
|
||||||
},
|
},
|
||||||
@@ -145,23 +154,6 @@ export default defineGkdApp({
|
|||||||
desc: '点击关闭',
|
desc: '点击关闭',
|
||||||
fastQuery: true,
|
fastQuery: true,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
|
||||||
key: 0,
|
|
||||||
activityIds:
|
|
||||||
'com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity',
|
|
||||||
matches:
|
|
||||||
'@ImageView[clickable=true][visibleToUser=true] -(1,2) TextView[childCount=0][id=null][text=null][desc=null] <n * >n [text*="广告"][childCount=0][id=null][desc=null]',
|
|
||||||
snapshotUrls: [
|
|
||||||
'https://i.gkd.li/i/14178980',
|
|
||||||
'https://i.gkd.li/i/14206949',
|
|
||||||
'https://i.gkd.li/i/14206988',
|
|
||||||
],
|
|
||||||
excludeSnapshotUrls: [
|
|
||||||
'https://i.gkd.li/i/17002118',
|
|
||||||
'https://i.gkd.li/i/17002119',
|
|
||||||
'https://i.gkd.li/i/17002120',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 2,
|
key: 2,
|
||||||
activityIds: [
|
activityIds: [
|
||||||
@@ -176,12 +168,6 @@ export default defineGkdApp({
|
|||||||
'https://i.gkd.li/i/15285359',
|
'https://i.gkd.li/i/15285359',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 3,
|
|
||||||
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
|
|
||||||
matches: '@[vid="menu"][visibleToUser=true] < * - * > [text^="广告"]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/i/14296163',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 4,
|
key: 4,
|
||||||
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
|
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
|
||||||
@@ -206,12 +192,12 @@ export default defineGkdApp({
|
|||||||
activityIds:
|
activityIds:
|
||||||
'com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity',
|
'com.zhihu.android.feature.short_container_feature.ui.ShortContainerHostActivity',
|
||||||
matches:
|
matches:
|
||||||
'@ImageView[clickable=true][visibleToUser=true] <n * > [text*="知乎" || text="创作者小助手"][index=1]',
|
'@ImageView[clickable=true][visibleToUser=true] -(1,2) TextView[childCount=0][id=null][text=null][desc=null] <n * > [text*="知乎" || text="创作者小助手"][childCount=0][id=null][desc=null]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/i/14235024',
|
'https://i.gkd.li/i/14235024',
|
||||||
'https://i.gkd.li/i/14944631',
|
'https://i.gkd.li/i/14944631',
|
||||||
'https://i.gkd.li/i/14232195',
|
'https://i.gkd.li/i/14232195',
|
||||||
'https://i.gkd.li/i/14232195', // [index=1]避免误触
|
'https://i.gkd.li/i/14232195', // 避免误触
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user