feat(QQ):好友动态-广告卡片(优化规则)、首页广告弹窗 (#3509)

* feat 好友动态-广告卡片(补充 activityId)

* feat 首页广告弹窗

* feat 好友动态-广告卡片(优化规则)
This commit is contained in:
Kun Jinkao 2024-01-02 20:02:27 +08:00 committed by GitHub
parent d285cf4051
commit 0cea3a2757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.tencent.mobileqq',
name: 'QQ',
deprecatedKeys: [6],
groups: [
{
key: 0,
@ -60,9 +61,15 @@ export default defineAppConfig({
rules: [
{
key: 0,
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
matches: 'View[desc="广告"] + ImageView[clickable=true]', // 1689050226722
snapshotUrls: 'https://i.gkd.li/import/12847842',
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
],
matches: 'View[desc="广告"] + ImageView[clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12847842',
'https://i.gkd.li/import/13787345',
],
},
{
preKeys: 0,
@ -81,6 +88,19 @@ export default defineAppConfig({
matches: '@[clickable=true] > * > ImageView + [text="隐藏此条动态"]',
snapshotUrls: 'https://i.gkd.li/import/13761147',
},
{
key: 3,
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
],
matches:
'[id="com.tencent.mobileqq:id/tv_name"] + TextView[text="广告"] + @ImageView[clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12749584',
'https://i.gkd.li/import/13627967',
],
},
],
},
{
@ -156,21 +176,6 @@ export default defineAppConfig({
},
],
},
{
key: 6,
name: '动态广告卡片',
desc: '点击右上角[广告]右侧的x按钮直接关闭',
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
],
rules:
'@ImageView[clickable=true] - TextView[text="广告"] - [id="com.tencent.mobileqq:id/tv_name"]',
snapshotUrls: [
'https://i.gkd.li/import/12749584',
'https://i.gkd.li/import/13627967',
],
},
{
key: 7,
name: '扫一扫-登录确认',
@ -392,5 +397,20 @@ export default defineAppConfig({
},
],
},
{
key: 21,
name: '首页广告弹窗',
rules: [
{
key: 0,
name: '元梦之星广告弹窗',
activityIds:
'com.tencent.mobileqq.activity.QPublicTransFragmentActivity',
matches:
'ViewGroup[childCount=2] > ViewGroup[childCount=3][index=1] > ViewGroup[clickable=true][visibleToUser=true][index=1][childCount=0]',
snapshotUrls: 'https://i.gkd.li/import/13797876',
},
],
},
],
});