Files
AIsouler-GKD_subscription/src/apps/com.tencent.mobileqq.ts
Kun Jinkao 1d4ae42d27 feat(QQ): 频道页面广告 (#342)
* feat(QQ)

* feat(QQ)

* feat(QQ): 频道页面广告-规则优化

---------

Co-authored-by: 二刺螈 <i@songe.li>
2023-09-25 00:56:46 +08:00

85 lines
2.7 KiB
TypeScript

import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.tencent.mobileqq',
name: 'QQ',
groups: [
{
enable: false,
key: 0,
name: '开屏广告',
desc: '规则误触,待修复,需要快照准确定位',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules: '[text*=`跳过`]',
},
{
key: 1,
name: '消息页面-顶部广告',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules: [
'ImageView[id!=null][desc="关闭"][clickable=true]', // 1687669217838
],
},
{
key: 2,
name: '好友动态-广告卡片',
rules: [
{
activityIds:
'com.tencent.qqlive.module.videoreport.inject.dialog.ReportDialog',
matches:
'[clickable=true] > ImageView + TextView[text="关闭此条广告"]', // 1689050230463
},
{
activityIds:
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
matches: 'View[desc="广告"] + ImageView[clickable=true]', // 1689050226722
},
],
},
{
key: 3,
name: '频道页面广告',
rules: [
{
name: '弹窗广告',
activityIds:
'com.tencent.qqlive.module.videoreport.inject.dialog.ReportDialog',
matches:
'ImageView[id="com.tencent.mobileqq:id/close"][clickable=true]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12642081',
},
{
name: '右侧悬浮广告',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
matches:
'FrameLayout[desc="发表帖子"] - LinearLayout[id!=null] >3 ImageView[id!=null][clickable=false] - View[id!=null][clickable=true]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12708844',
},
],
},
{
enable: false,
key: 4,
name: '新人专享1元购SVIP',
desc: '消息界面-搜索框和消息记录直接的广告卡片,点击关闭右侧x',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules:
'@ImageView[id!=null][clickable=true] -2 TextView[id!=null][text^="新人专享1元购SVIP"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12706907',
},
{
enable: false,
key: 10,
name: '自动勾选原图',
desc: '发送图片时自动勾选原图',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules: ['@CheckBox[checked=false] + [text="原图"]'],
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12705556', // 未勾选原图
'https://gkd-kit.gitee.io/import/12705559', // 已勾选原图
],
},
],
});