mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 16:54:43 +08:00
feat(酷安): 卡片广告-规则优化整合
This commit is contained in:
@@ -19,40 +19,51 @@ export default defineAppConfig({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
name: '关闭卡片广告',
|
name: '卡片广告',
|
||||||
desc: '点击卡片右上角按钮,然后点击关闭弹窗',
|
desc: '点击卡片右上角按钮->免广告-点击不感兴趣->选择关闭原因-点击不感兴趣',
|
||||||
activityIds: [
|
activityIds: [
|
||||||
'com.coolapk.market.view.main.MainActivity', // 缺少快照
|
'com.coolapk.market.view.main.MainActivity', // 缺少快照
|
||||||
'com.coolapk.market.view.base.SimpleAlphaActivity', // 缺少快照
|
'com.coolapk.market.view.base.SimpleAlphaActivity', // 缺少快照
|
||||||
'com.coolapk.market.view.node.DynamicNodePageActivity',
|
'com.coolapk.market.view.node.DynamicNodePageActivity',
|
||||||
|
'com.coolapk.market.view.feed.FeedDetailActivityV8',
|
||||||
],
|
],
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
name: '点击右上角x按钮',
|
name: '点击右上角x按钮',
|
||||||
matches:
|
matches:
|
||||||
'[id="com.coolapk.market:id/ad_time_view"] + [id="com.coolapk.market:id/close_view"]',
|
'[id="com.coolapk.market:id/ad_time_view"||id="com.coolapk.market:id/top_text_view"||id="com.coolapk.market:id/ad_text_view"] + [id="com.coolapk.market:id/close_view"]',
|
||||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12707506',
|
snapshotUrls: [
|
||||||
|
'https://gkd-kit.gitee.io/import/12707506',
|
||||||
|
'https://gkd-kit.gitee.io/import/12642094',
|
||||||
|
'https://gkd-kit.gitee.io/import/12642148',
|
||||||
|
'https://gkd-kit.gitee.io/import/12774771',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
preKeys: [1],
|
preKeys: [1],
|
||||||
key: 2,
|
key: 2,
|
||||||
name: '点击不感兴趣',
|
name: '去广告/免广告-点击不感兴趣',
|
||||||
matches: 'Button[text$="广告"] + Button[text="不感兴趣"]',
|
matches:
|
||||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12707509',
|
'Button[text$="广告"] <n LinearLayout[childCount=2] > Button[text="不感兴趣"]',
|
||||||
|
snapshotUrls: [
|
||||||
|
'https://gkd-kit.gitee.io/import/12707509',
|
||||||
|
'https://gkd-kit.gitee.io/import/12642132',
|
||||||
|
'https://gkd-kit.gitee.io/import/12642155',
|
||||||
|
'https://gkd-kit.gitee.io/import/12774753',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// preKeys: [2], // 取消前置 key,防止快速滑动时停在最后一个界面而不进行点击
|
|
||||||
key: 3,
|
key: 3,
|
||||||
name: '再次点击不感兴趣',
|
name: '选择关闭原因-点击不感兴趣',
|
||||||
activityIds: ['com.bytedance.sdk.openadsdk.core.dislike.ui'],
|
|
||||||
matches: [
|
matches: [
|
||||||
'@LinearLayout[clickable=true] > [id$="id/tt_item_tv"][text="不感兴趣"]',
|
'@LinearLayout[clickable=true] > TextView[text="不感兴趣"][id$="id/tt_item_tv"]',
|
||||||
],
|
],
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://gkd-kit.gitee.io/import/38517192/9badc07c-4da2-4066-8af5-d96a86a28315',
|
'https://gkd-kit.gitee.io/import/12472633',
|
||||||
'https://gkd-kit.gitee.io/import/12655713',
|
'https://gkd-kit.gitee.io/import/12655713',
|
||||||
'https://gkd-kit.gitee.io/import/12660759',
|
'https://gkd-kit.gitee.io/import/12660759',
|
||||||
|
'https://gkd-kit.gitee.io/import/12706437',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -64,46 +75,6 @@ export default defineAppConfig({
|
|||||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12503762',
|
snapshotUrls: 'https://gkd-kit.gitee.io/import/12503762',
|
||||||
rules: '[text=`立即更新`] - [text=`取消`]',
|
rules: '[text=`立即更新`] - [text=`取消`]',
|
||||||
},
|
},
|
||||||
{
|
// key=2 曾经被使用,不可再用
|
||||||
key: 2,
|
|
||||||
name: '关闭卡片广告(旧版)',
|
|
||||||
desc: '点击卡片右上角按钮,然后点击关闭弹窗',
|
|
||||||
activityIds: [
|
|
||||||
'com.coolapk.market.view.feed.FeedDetailActivityV8',
|
|
||||||
'com.bytedance.sdk.openadsdk.core.dislike.ui',
|
|
||||||
'com.coolapk.market.view.node.DynamicNodePageActivity',
|
|
||||||
],
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
key: 1,
|
|
||||||
name: '点击x按钮',
|
|
||||||
matches: [
|
|
||||||
'[id="com.coolapk.market:id/top_text_view"] + [id="com.coolapk.market:id/close_view"][desc="关闭"]',
|
|
||||||
],
|
|
||||||
snapshotUrls: [
|
|
||||||
'https://gkd-kit.gitee.io/import/12642094',
|
|
||||||
'https://gkd-kit.gitee.io/import/12642148',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
preKeys: [1],
|
|
||||||
key: 2,
|
|
||||||
name: '点击不感兴趣',
|
|
||||||
matches: '[text$="今日免广告"] + [text="不感兴趣"][clickable=true]',
|
|
||||||
snapshotUrls: [
|
|
||||||
'https://gkd-kit.gitee.io/import/12642132',
|
|
||||||
'https://gkd-kit.gitee.io/import/12642155',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
// preKeys: [2], // 取消前置 key,防止快速滑动时停在最后一个界面而不进行点击
|
|
||||||
key: 3,
|
|
||||||
name: '再次点击不感兴趣',
|
|
||||||
matches:
|
|
||||||
'@LinearLayout > [id="com.byted.pangle.m:id/tt_item_tv"][text="不感兴趣"]',
|
|
||||||
snapshotUrls: ['https://gkd-kit.gitee.io/import/12706437'],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user