mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-17 23:34:57 +08:00
* Update com.tencent.mobileqq.ts * Update com.tencent.mobileqq.ts * Update com.tencent.mobileqq.ts * feat(QQ): 内测邀请弹窗 --------- Co-authored-by: 二刺螈 <i@songe.li>
354 lines
12 KiB
TypeScript
354 lines
12 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.tencent.mobileqq',
|
|
name: 'QQ',
|
|
groups: [
|
|
{
|
|
key: 0,
|
|
name: '开屏广告',
|
|
quickFind: true,
|
|
matchTime: 10000,
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
rules: 'TextView[text^="跳过"][text.length<=10]',
|
|
excludeActivityIds: ['com.tencent.mobileqq.activity.ChatActivity'],
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13062244',
|
|
'https://i.gkd.li/import/13093155',
|
|
'https://i.gkd.li/import/13207731',
|
|
'https://i.gkd.li/import/13217807', // 避免在聊天界面误触
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 1,
|
|
name: '消息页面-顶部广告',
|
|
desc: '规则误触,待修复,需要快照准确定位', // 当从聊天界面点击链接进入网页时会误触
|
|
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
matches:
|
|
'TextView[text!=null] < LinearLayout + ImageView[desc="关闭"]', // 原@语法会出现两个选项可能会导致误触
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12892726',
|
|
'https://i.gkd.li/import/12774870',
|
|
'https://i.gkd.li/import/13207766',
|
|
'https://i.gkd.li/import/13386518',
|
|
],
|
|
},
|
|
{
|
|
key: 1,
|
|
name: '消息页面-顶部惊喜礼包',
|
|
matches:
|
|
'[text*="惊喜礼包"] + FrameLayout + ImageView[clickable=true]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13426912',
|
|
},
|
|
{
|
|
key: 2,
|
|
matches:
|
|
'ImageView + RelativeLayout[childCount=2] > TextView[text!=null] + ImageView',
|
|
snapshotUrls: 'https://i.gkd.li/import/13476400',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 2,
|
|
name: '好友动态-广告卡片',
|
|
activityIds: [
|
|
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
|
|
'com.tencent.mobileqq.activity.SplashActivity',
|
|
],
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
matches: 'View[desc="广告"] + ImageView[clickable=true]', // 1689050226722
|
|
snapshotUrls: 'https://i.gkd.li/import/12847842',
|
|
},
|
|
{
|
|
preKeys: 0,
|
|
quickFind: true,
|
|
matches:
|
|
'@[clickable=true] > ImageView + TextView[text="关闭此条广告"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12840889',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 3,
|
|
name: '频道页面广告',
|
|
rules: [
|
|
{
|
|
name: '弹窗广告',
|
|
quickFind: true,
|
|
activityIds: [
|
|
'com.tencent.mobileqq.activity.SplashActivity',
|
|
'com.tencent.qqlive.module.videoreport.inject.dialog.ReportDialog',
|
|
],
|
|
matches:
|
|
'ImageView[id="com.tencent.mobileqq:id/close"][clickable=true]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13206663', // com.tencent.mobileqq.activity.SplashActivity
|
|
'https://i.gkd.li/import/12642081', // com.tencent.qqlive.module.videoreport.inject.dialog.ReportDialog
|
|
],
|
|
},
|
|
{
|
|
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://i.gkd.li/import/12708844',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 4,
|
|
name: '顶部SVIP广告',
|
|
desc: '消息界面-搜索框和消息记录之间的广告卡片,点击关闭右侧x',
|
|
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
|
|
rules:
|
|
'LinearLayout > TextView[text*="SVIP"||text*="超级会员"] + FrameLayout[childCount<=2] + [name$="ImageView"||name$="Button"][id!=null][clickable=true]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12706907',
|
|
'https://i.gkd.li/import/13107298',
|
|
'https://i.gkd.li/import/12793359',
|
|
'https://i.gkd.li/import/12855048',
|
|
'https://i.gkd.li/import/13228108',
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 5,
|
|
name: '好友热播',
|
|
desc: '好友动态中的好友热播,自动选择“减少好友热播” - 默认关闭',
|
|
activityIds: [
|
|
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
|
|
'com.tencent.mobileqq.activity.SplashActivity',
|
|
],
|
|
rules: [
|
|
{
|
|
name: '点击[好友热播]卡片右上角菜单按钮',
|
|
matches:
|
|
'TextView[text="好友热播"] + Button[id^="com.tencent.mobileqq.qzone_df_impl:id/"][clickable=true]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12721427', // com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity
|
|
'https://i.gkd.li/import/12894359', // com.tencent.mobileqq.activity.SplashActivity
|
|
],
|
|
},
|
|
{
|
|
name: '点击[减少好友热播]',
|
|
matches:
|
|
'TextView[text="减少好友热播"] <2 LinearLayout < LinearLayout[id^="com.tencent.mobileqq.qzone_df_impl:id/"][clickable=true]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12721433', // com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity
|
|
'https://i.gkd.li/import/12894375', // com.tencent.mobileqq.activity.SplashActivity
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 6,
|
|
name: '动态广告卡片',
|
|
desc: '点击右上角[广告]右侧的x按钮直接关闭',
|
|
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
|
|
rules:
|
|
'@ImageView[clickable=true] - TextView[text="广告"] - [id="com.tencent.mobileqq:id/tv_name"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12749584',
|
|
},
|
|
{
|
|
key: 7,
|
|
name: '扫一扫-登录确认',
|
|
quickFind: true,
|
|
activityIds: [
|
|
'com.tencent.biz.qrcode.activity.QRLoginAuthActivity',
|
|
'com.tencent.mobileqq.activity.DevLockQuickVerifyActivity',
|
|
],
|
|
rules: 'Button[text="拒绝"] - Button[text="登录"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12789287',
|
|
'https://i.gkd.li/import/13166314',
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 8,
|
|
name: '消息页面顶部-无法接收新消息通知',
|
|
desc: '消息界面-搜索框和消息记录之间的通知卡片,点击关闭右侧x',
|
|
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
|
|
rules: 'RelativeLayout > [text^="当前无法接收"] + ImageView',
|
|
snapshotUrls: 'https://i.gkd.li/import/12855441',
|
|
},
|
|
{
|
|
key: 9,
|
|
name: '我的等级-浮窗广告',
|
|
activityIds: 'com.tencent.mobileqq.activity.QQBrowserActivity',
|
|
rules:
|
|
'TextView[text="QQ等级规则"] + View > TextView[id=null&&text.length=0]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12914734',
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 10,
|
|
name: '自动勾选原图',
|
|
desc: '发送图片时自动勾选原图',
|
|
activityIds: [
|
|
'com.tencent.mobileqq.activity.SplashActivity',
|
|
'com.tencent.qqnt.qbasealbum.WinkHomeActivity',
|
|
'com.tencent.mobileqq.activity.photo.album.NewPhotoListActivity',
|
|
],
|
|
rules: '@CheckBox[checked=false] + [text="原图"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12705556', // 未勾选原图
|
|
'https://i.gkd.li/import/12705559', // 已勾选原图
|
|
'https://i.gkd.li/import/13295142', // com.tencent.qqnt.qbasealbum.WinkHomeActivity
|
|
'https://i.gkd.li/import/13476247', // com.tencent.mobileqq.activity.photo.album.NewPhotoListActivity
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 11,
|
|
name: '自动查看原图',
|
|
desc: '查看图片时自动点击原图',
|
|
activityIds: 'com.tencent.richframework.gallery.QQGalleryActivity',
|
|
rules: '[desc="查看原图"][checked=false]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12840632', // 点击原图前
|
|
'https://i.gkd.li/import/12840633', // 点击原图后
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 12,
|
|
name: 'QQ小世界评论区广告',
|
|
desc: '点击广告-弹出原因框-关闭此条广告',
|
|
activityIds: [
|
|
'com.tencent.mobileqq.activity.SplashActivity',
|
|
'com.tencent.biz.qqcircle.activity.QCircleFolderActivity',
|
|
],
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
matches:
|
|
'RelativeLayout[childCount=5] > @LinearLayout[clickable=true][childCount=2][id!=null] > TextView[text="广告"][id!=null]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12847819',
|
|
},
|
|
{
|
|
preKeys: 0,
|
|
matches:
|
|
'@LinearLayout[clickable=true] > TextView[text="关闭此条广告"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12847821',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 13,
|
|
name: 'QQ小程序开屏广告',
|
|
desc: '点击右下角跳过',
|
|
activityIds: [
|
|
'com.tencent.mobileqq.mini.appbrand.ui.AppBrandUI',
|
|
'com.tencent.mobileqq.activity.miniaio.MiniChatActivity',
|
|
],
|
|
rules: [
|
|
{
|
|
matches:
|
|
'TextView[text = "广告"] < RelativeLayout + RelativeLayout TextView[text = "跳过"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12877215',
|
|
'https://i.gkd.li/import/12919195',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 14,
|
|
name: '黄钻-弹窗广告',
|
|
activityIds: 'com.tencent.mobileqq.activity.QQBrowserActivity',
|
|
rules:
|
|
'TextView[text.length=0&&clickable=true&&visibleToUser=true] + View > Button[text.length=0&&focusable=true]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12914978',
|
|
'https://i.gkd.li/import/12914886',
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 15,
|
|
name: '好友动态-为你推荐',
|
|
quickFind: true,
|
|
matchLauncher: true,
|
|
activityIds: [
|
|
'com.tencent.mobileqq.activity.SplashActivity',
|
|
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
|
|
],
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
matches: '@ImageView[clickable=true] - [text="为你推荐"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12929620',
|
|
'https://i.gkd.li/import/13387606', // activityIds: 'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
|
|
],
|
|
},
|
|
{
|
|
preKeys: 0,
|
|
key: 1,
|
|
matches:
|
|
'@LinearLayout[id!=null][clickable=true] > LinearLayout > [text="减少此类推荐"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12929619',
|
|
'https://i.gkd.li/import/13387605', // matchLauncher: true,
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 16,
|
|
name: 'NT QQ-登录确认',
|
|
desc: 'NT QQ 登录时自动点击允许登录QQ',
|
|
activityIds: 'com.tencent.mobileqq.activity.DevlockQuickLoginActivity',
|
|
rules: 'Button[text="允许登录QQ"][clickable=true][id!=null]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13063027',
|
|
},
|
|
{
|
|
key: 17,
|
|
name: '更新弹窗',
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
rules: '@[desc="关闭"] - ViewGroup > [text="立即体验"||text="立即升级"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13188721',
|
|
'https://i.gkd.li/import/13386719',
|
|
'https://i.gkd.li/import/13459507',
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 18,
|
|
name: '消息页面-顶部更新提示',
|
|
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
|
|
rules: 'TextView[text="发现QQ版本更新"] + ImageView[clickable=true]', //修正desc值为null时无法点击问题
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13188722',
|
|
'https://i.gkd.li/import/13255493', //desc值为null快照
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 19,
|
|
name: '内测邀请弹窗',
|
|
quickFind: true,
|
|
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
matches: '@ImageView[desc="关闭"] <2 * >2 [text="QQ测试版"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13526551',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|