mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-23 02:05:06 +08:00
feat(迅雷): 广告规则完善 (#976)
* feat(迅雷) * feat 应用内广告弹窗 * feat 视频详情页广告(完善规则) * feat 搜索页面-顶部banner广告 * feat 会员续费广告(完善规则) * chore 传输界面-广告弹窗(删除冗余字段) * feat 应用内广告弹窗(完善规则) * feat(迅雷): 规则优化 --------- Co-authored-by: 二刺螈 <i@songe.li>
This commit is contained in:
@@ -13,8 +13,7 @@ export default defineAppConfig({
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
name: '视频详情-广告卡片',
|
||||
desc: '自动点击【不感兴趣】',
|
||||
name: '视频详情页广告',
|
||||
activityIds:
|
||||
'com.xunlei.downloadprovider.download.taskdetails.newui.DownloadDetailsActivity',
|
||||
rules: [
|
||||
@@ -35,6 +34,12 @@ export default defineAppConfig({
|
||||
'https://gkd-kit.gitee.io/import/12707702', // activityId: 'com.xunlei.downloadprovider.feedback.view'
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
activityIds: 'com.xunlei.downloadprovider.feedback.view',
|
||||
matches: '[id="com.xunlei.downloadprovider:id/ad_ima_skip"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12882988',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -67,19 +72,68 @@ export default defineAppConfig({
|
||||
key: 0,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matchLauncher: true,
|
||||
matches: '@[text="关闭"] +n LinearLayout > [text*="广告"]',
|
||||
matches: '@[text="关闭"] +n * > [text*="广告"]',
|
||||
snapshotUrls: [
|
||||
'https://gkd-kit.songe.li/import/12868648',
|
||||
'https://gkd-kit.gitee.io/import/12879372', //activityIds is Launcher, add matchLauncher: true,
|
||||
'https://gkd-kit.gitee.io/import/12879372',
|
||||
'https://gkd-kit.songe.li/import/12882366',
|
||||
],
|
||||
},
|
||||
|
||||
// 字节广告
|
||||
{
|
||||
key: 1,
|
||||
key: 10,
|
||||
activityIds:
|
||||
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
|
||||
matches:
|
||||
'@Image[text=""] < View +n View > View > TextView[text="广告"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12868667',
|
||||
'@Image[text=""] < View + View +n View > View > TextView[text="广告"]',
|
||||
snapshotUrls: [
|
||||
'https://gkd-kit.songe.li/import/12868667',
|
||||
'https://gkd-kit.songe.li/import/12881946',
|
||||
],
|
||||
},
|
||||
|
||||
// 腾讯广告
|
||||
{
|
||||
key: 20,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matches: 'ImageView - FrameLayout > FrameLayout > ImageView',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12882132',
|
||||
},
|
||||
{
|
||||
key: 21,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matches:
|
||||
'ImageView < FrameLayout - FrameLayout > FrameLayout > ImageView',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12882166',
|
||||
},
|
||||
{
|
||||
key: 22,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matches:
|
||||
'ImageView - LinearLayout - FrameLayout > FrameLayout > ImageView',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12882237',
|
||||
},
|
||||
|
||||
// 快手广告
|
||||
{
|
||||
key: 30,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matchLauncher: true,
|
||||
matches:
|
||||
'@ImageView[visibleToUser=true] < ViewGroup < ViewGroup +n ViewGroup > [text="广告"]',
|
||||
snapshotUrls: [
|
||||
'https://gkd-kit.songe.li/import/12882199', // n = 1
|
||||
'https://gkd-kit.songe.li/import/12881911', // n = 2
|
||||
'https://gkd-kit.songe.li/import/12881976', // 限定 visibleToUser=true,防止在这个快照中误触
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 31,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matches:
|
||||
'[text="广告"] <2 ViewGroup -2 ViewGroup >n [text="跳过"] + ImageView',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12881976',
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
@@ -91,15 +145,59 @@ export default defineAppConfig({
|
||||
],
|
||||
},
|
||||
{
|
||||
enable: true,
|
||||
key: 10,
|
||||
name: '会员续费弹窗',
|
||||
activityIds: 'com.xunlei.downloadprovider.homepage.member',
|
||||
rules: '[id="com.xunlei.downloadprovider:id/close_btn"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12707698',
|
||||
key: 4,
|
||||
name: '下载页面-广告卡片',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matches: '[id="com.xunlei.downloadprovider:id/ad_more"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12881865',
|
||||
},
|
||||
{
|
||||
preKeys: [0],
|
||||
key: 1,
|
||||
activityIds: 'com.xunlei.downloadprovider.download.center.newcenter',
|
||||
matches: '[id="com.xunlei.downloadprovider:id/close_ad"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/128818775',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
name: '搜索页面-顶部banner广告',
|
||||
activityIds:
|
||||
'com.xunlei.downloadprovider.search.ui.search.SearchOperateActivity',
|
||||
rules: '[id="com.xunlei.downloadprovider:id/search_banner_ad_close"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12882892',
|
||||
},
|
||||
{
|
||||
key: 10,
|
||||
name: '会员续费广告',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
activityIds: 'com.xunlei.downloadprovider.homepage.member',
|
||||
matches: '[id="com.xunlei.downloadprovider:id/close_btn"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12707698',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matches:
|
||||
'[id="com.xunlei.downloadprovider:id/all_picture_image"] + [id="com.xunlei.downloadprovider:id/close_btn"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12882928',
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matches:
|
||||
'[text="立即开通"] + [id="com.xunlei.downloadprovider:id/close"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12882939',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
enable: true,
|
||||
key: 11,
|
||||
name: '传输界面-广告弹窗',
|
||||
desc: '自动点击 右上角x 关闭',
|
||||
|
||||
Reference in New Issue
Block a user