mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 08:44:55 +08:00
feat(知乎): 会员页面-广告弹窗, 问题回答-自动展开, 开屏广告 (#329)
* feat(知乎) * feat(知乎) * feat(知乎) * fix 问题回答-自动展开 使用 [visibleToUser=true] 进行限定,防止在控件不可见时提前触发规则
This commit is contained in:
@@ -9,11 +9,11 @@ export default defineAppConfig({
|
|||||||
name: '开屏广告',
|
name: '开屏广告',
|
||||||
activityIds: [
|
activityIds: [
|
||||||
'com.zhihu.android.app.ui.activity.LauncherActivity',
|
'com.zhihu.android.app.ui.activity.LauncherActivity',
|
||||||
'com.zhihu.android.app.ui.activity.LaunchAdActivity',
|
|
||||||
'com.zhihu.android.app.feed.AdTransparentHostActivity',
|
'com.zhihu.android.app.feed.AdTransparentHostActivity',
|
||||||
'com.miui.home.launcher.Launcher',
|
'com.miui.home.launcher.Launcher',
|
||||||
],
|
],
|
||||||
rules: 'TextView[id=`com.zhihu.android:id/btn_skip`]', // 1688038758143
|
rules: 'TextView[id="com.zhihu.android:id/btn_skip"]',
|
||||||
|
snapshotUrls: 'https://gkd-kit.gitee.io/import/12707641',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
@@ -87,7 +87,7 @@ export default defineAppConfig({
|
|||||||
activityIds: [
|
activityIds: [
|
||||||
'com.zhihu.android.mix.activity.ContentMixProfileActivity',
|
'com.zhihu.android.mix.activity.ContentMixProfileActivity',
|
||||||
],
|
],
|
||||||
matches: 'TextView[text=`查看详情`] + TextView[text=`×`]',
|
matches: 'TextView[text="查看详情"] + TextView[text="×"]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://gkd-kit.gitee.io/import/12647617',
|
'https://gkd-kit.gitee.io/import/12647617',
|
||||||
'https://gkd-kit.gitee.io/import/12647659', // 点击x按钮后的快照,界面无任何变化,导致反复触发这条规则
|
'https://gkd-kit.gitee.io/import/12647659', // 点击x按钮后的快照,界面无任何变化,导致反复触发这条规则
|
||||||
@@ -168,13 +168,22 @@ export default defineAppConfig({
|
|||||||
{
|
{
|
||||||
enable: false,
|
enable: false,
|
||||||
key: 11,
|
key: 11,
|
||||||
name: '盐选会员-月卡红包',
|
name: '会员页面-月卡红包',
|
||||||
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
|
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
|
||||||
rules: [
|
rules: [
|
||||||
'ImageView[id="com.zhihu.android:id/floating_img"] + ImageView[id="com.zhihu.android:id/floating_close_btn"][clickable=true]',
|
'ImageView[id="com.zhihu.android:id/floating_img"] + ImageView[id="com.zhihu.android:id/floating_close_btn"][clickable=true]',
|
||||||
],
|
],
|
||||||
snapshotUrls: ['https://gkd-kit.gitee.io/import/12647421'],
|
snapshotUrls: ['https://gkd-kit.gitee.io/import/12647421'],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 12,
|
||||||
|
name: '会员页面-广告弹窗',
|
||||||
|
activityIds: 'com.zhihu.android.app.ui.activity.MainActivity',
|
||||||
|
rules: [
|
||||||
|
'[id="com.zhihu.android:id/image"] < RelativeLayout + [id="com.zhihu.android:id/dismiss"]',
|
||||||
|
],
|
||||||
|
snapshotUrls: ['https://gkd-kit.gitee.io/import/12707676'],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
enable: false,
|
enable: false,
|
||||||
key: 101, // 不属于广告,序号往后排
|
key: 101, // 不属于广告,序号往后排
|
||||||
@@ -182,9 +191,12 @@ export default defineAppConfig({
|
|||||||
activityIds:
|
activityIds:
|
||||||
'com.zhihu.android.mixshortcontainer.MixShortContainerActivity',
|
'com.zhihu.android.mixshortcontainer.MixShortContainerActivity',
|
||||||
rules: [
|
rules: [
|
||||||
'ImageView[id="com.zhihu.android:id/iv_expand"] - TextView[id="com.zhihu.android:id/tv_expand"][text="展开"]',
|
'ImageView[id="com.zhihu.android:id/iv_expand"] - TextView[id="com.zhihu.android:id/tv_expand"][text="展开"][visibleToUser=true]',
|
||||||
|
],
|
||||||
|
snapshotUrls: [
|
||||||
|
'https://gkd-kit.gitee.io/import/12647688',
|
||||||
|
'https://gkd-kit.gitee.io/import/12707687', // 使用 [visibleToUser=true] 进行限定,防止在控件不可见时提前触发规则
|
||||||
],
|
],
|
||||||
snapshotUrls: ['https://gkd-kit.gitee.io/import/12647688'],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user