feat: 微博-信息流广告 #1142 #1145

This commit is contained in:
AIsouler
2025-09-11 20:29:14 +08:00
parent 3a0704e228
commit d4422bcab9
2 changed files with 18 additions and 23 deletions

View File

@@ -545,7 +545,7 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [
{ {
id: 'com.sina.weibo', id: 'com.sina.weibo',
name: '微博', name: '微博',
deprecatedKeys: [10], deprecatedKeys: [5, 10],
}, },
{ {
id: 'com.jingyao.easybike', id: 'com.jingyao.easybike',

View File

@@ -4,27 +4,6 @@ export default defineGkdApp({
id: 'com.sina.weibo', id: 'com.sina.weibo',
name: '微博', name: '微博',
groups: [ groups: [
{
key: 5,
name: '局部广告-卡片广告',
desc: '点击关闭',
rules: [
{
fastQuery: true,
activityIds: [
'.feed.DetailWeiboActivity',
'.feed.detailrefactor.DetailPageActivity',
],
matches:
'RelativeLayout >7 FrameLayout[childCount=4] > FrameLayout[childCount=1] > @[name$="FrameLayout" || name$="ImageView"][clickable=true][childCount<2][visibleToUser=true][width<50&&height<50] <<n [vid="view_recycler" || vid="tweet_list"]',
exampleUrls: 'https://e.gkd.li/fc3b2c98-4540-4ec1-94b2-24abf90212c9',
snapshotUrls: [
'https://i.gkd.li/i/21166775',
'https://i.gkd.li/i/21828269',
],
},
],
},
{ {
key: 8, key: 8,
name: '全屏广告-弹窗广告', name: '全屏广告-弹窗广告',
@@ -132,10 +111,26 @@ export default defineGkdApp({
exampleUrls: 'https://e.gkd.li/6952c2d1-65b5-4419-adb6-ba0f6349801e', exampleUrls: 'https://e.gkd.li/6952c2d1-65b5-4419-adb6-ba0f6349801e',
snapshotUrls: 'https://i.gkd.li/i/19538265', snapshotUrls: 'https://i.gkd.li/i/19538265',
}, },
{
key: 5,
matches: '[vid="iv_ad_x"][visibleToUser=true]',
exampleUrls: 'https://e.gkd.li/58baa39c-c447-4664-8a39-c058497b9495',
snapshotUrls: 'https://i.gkd.li/i/22275086',
},
{
key: 6,
matches:
'RelativeLayout >7 FrameLayout[childCount=4] > FrameLayout[childCount=1] > @[name$="FrameLayout" || name$="ImageView"][clickable=true][childCount<2][visibleToUser=true][width<50&&height<50] <<n [vid="view_recycler" || vid="tweet_list"]',
exampleUrls: 'https://e.gkd.li/fc3b2c98-4540-4ec1-94b2-24abf90212c9',
snapshotUrls: [
'https://i.gkd.li/i/21166775',
'https://i.gkd.li/i/21828269',
],
},
// 预留key // 预留key
{ {
preKeys: [0, 1, 3, 4], preKeys: [0, 1, 3, 4, 5, 6],
key: 90, key: 90,
matchRoot: true, matchRoot: true,
anyMatches: [ anyMatches: [