feat(QQ): 开屏广告(优化规则、补充快照) (#1293)

* feat: 开屏广告(优化规则、补充快照)

* feat(QQ): 规则优化

---------

Co-authored-by: lisonge <i@songe.li>
This commit is contained in:
Kun Jinkao
2023-10-23 00:29:09 +08:00
committed by GitHub
parent dc52cc177d
commit a8668af728

View File

@@ -10,7 +10,8 @@ export default defineAppConfig({
name: '开屏广告', name: '开屏广告',
desc: '规则误触,待修复,需要快照准确定位', desc: '规则误触,待修复,需要快照准确定位',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity', activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules: '[text*=`跳过`]', rules: '[id!=null][text="跳过"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13062244',
}, },
{ {
enable: false, enable: false,
@@ -22,8 +23,8 @@ export default defineAppConfig({
'@[desc="关闭"][clickable=true] - LinearLayout > TextView[text!=null] + TextView[text!=null]', // 1687669217838 '@[desc="关闭"][clickable=true] - LinearLayout > TextView[text!=null] + TextView[text!=null]', // 1687669217838
], ],
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.songe.li/import/12892726', 'https://i.gkd.li/import/12892726',
'https://gkd-kit.songe.li/import/12774870', 'https://i.gkd.li/import/12774870',
], ],
}, },
{ {
@@ -37,7 +38,7 @@ export default defineAppConfig({
{ {
key: 0, key: 0,
matches: 'View[desc="广告"] + ImageView[clickable=true]', // 1689050226722 matches: 'View[desc="广告"] + ImageView[clickable=true]', // 1689050226722
snapshotUrls: 'https://gkd-kit.songe.li/import/12847842', snapshotUrls: 'https://i.gkd.li/import/12847842',
}, },
{ {
preKeys: 0, preKeys: 0,
@@ -78,7 +79,7 @@ export default defineAppConfig({
'LinearLayout > TextView[text*="SVIP"] + FrameLayout + [name$="ImageView"||name$="Button"][id!=null]', 'LinearLayout > TextView[text*="SVIP"] + FrameLayout + [name$="ImageView"||name$="Button"][id!=null]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.gitee.io/import/12706907', 'https://gkd-kit.gitee.io/import/12706907',
'https://gkd-kit.songe.li/import/12793359', 'https://i.gkd.li/import/12793359',
'http://gkd-kit.songe.li/import/12855048', 'http://gkd-kit.songe.li/import/12855048',
], ],
}, },
@@ -98,7 +99,7 @@ export default defineAppConfig({
'TextView[text="好友热播"] + Button[id^="com.tencent.mobileqq.qzone_df_impl:id/"][clickable=true]', 'TextView[text="好友热播"] + Button[id^="com.tencent.mobileqq.qzone_df_impl:id/"][clickable=true]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.gitee.io/import/12721427', // com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity 'https://gkd-kit.gitee.io/import/12721427', // com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity
'https://gkd-kit.songe.li/import/12894359', // com.tencent.mobileqq.activity.SplashActivity 'https://i.gkd.li/import/12894359', // com.tencent.mobileqq.activity.SplashActivity
], ],
}, },
{ {
@@ -107,7 +108,7 @@ export default defineAppConfig({
'TextView[text="减少好友热播"] <2 LinearLayout < LinearLayout[id^="com.tencent.mobileqq.qzone_df_impl:id/"][clickable=true]', 'TextView[text="减少好友热播"] <2 LinearLayout < LinearLayout[id^="com.tencent.mobileqq.qzone_df_impl:id/"][clickable=true]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.gitee.io/import/12721433', // com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity 'https://gkd-kit.gitee.io/import/12721433', // com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity
'https://gkd-kit.songe.li/import/12894375', // com.tencent.mobileqq.activity.SplashActivity 'https://i.gkd.li/import/12894375', // com.tencent.mobileqq.activity.SplashActivity
], ],
}, },
], ],
@@ -127,7 +128,7 @@ export default defineAppConfig({
quickFind: true, quickFind: true,
activityIds: 'com.tencent.biz.qrcode.activity.QRLoginAuthActivity', activityIds: 'com.tencent.biz.qrcode.activity.QRLoginAuthActivity',
rules: 'Button[text="拒绝"] - Button[text="登录"]', rules: 'Button[text="拒绝"] - Button[text="登录"]',
snapshotUrls: 'https://gkd-kit.songe.li/import/12789287', snapshotUrls: 'https://i.gkd.li/import/12789287',
}, },
{ {
enable: false, enable: false,
@@ -136,7 +137,7 @@ export default defineAppConfig({
desc: '消息界面-搜索框和消息记录之间的通知卡片,点击关闭右侧x', desc: '消息界面-搜索框和消息记录之间的通知卡片,点击关闭右侧x',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity', activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules: 'RelativeLayout > [text^="当前无法接收"] + ImageView', rules: 'RelativeLayout > [text^="当前无法接收"] + ImageView',
snapshotUrls: 'https://gkd-kit.songe.li/import/12855441', snapshotUrls: 'https://i.gkd.li/import/12855441',
}, },
{ {
key: 9, key: 9,
@@ -144,7 +145,7 @@ export default defineAppConfig({
activityIds: 'com.tencent.mobileqq.activity.QQBrowserActivity', activityIds: 'com.tencent.mobileqq.activity.QQBrowserActivity',
rules: rules:
'TextView[text="QQ等级规则"] + View > TextView[id=null&&text.length=0]', 'TextView[text="QQ等级规则"] + View > TextView[id=null&&text.length=0]',
snapshotUrls: 'https://gkd-kit.songe.li/import/12914734', snapshotUrls: 'https://i.gkd.li/import/12914734',
}, },
{ {
enable: false, enable: false,
@@ -166,8 +167,8 @@ export default defineAppConfig({
activityIds: 'com.tencent.richframework.gallery.QQGalleryActivity', activityIds: 'com.tencent.richframework.gallery.QQGalleryActivity',
rules: '[desc="查看原图"][checked=false]', rules: '[desc="查看原图"][checked=false]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.songe.li/import/12840632', // 点击原图前 'https://i.gkd.li/import/12840632', // 点击原图前
'https://gkd-kit.songe.li/import/12840633', // 点击原图后 'https://i.gkd.li/import/12840633', // 点击原图后
], ],
}, },
{ {
@@ -184,13 +185,13 @@ export default defineAppConfig({
key: 0, key: 0,
matches: matches:
'RelativeLayout[childCount=5] > @LinearLayout[clickable=true][childCount=2][id!=null] > TextView[text="广告"][id!=null]', 'RelativeLayout[childCount=5] > @LinearLayout[clickable=true][childCount=2][id!=null] > TextView[text="广告"][id!=null]',
snapshotUrls: 'https://gkd-kit.songe.li/import/12847819', snapshotUrls: 'https://i.gkd.li/import/12847819',
}, },
{ {
preKeys: 0, preKeys: 0,
matches: matches:
'@LinearLayout[clickable=true] > TextView[text="关闭此条广告"]', '@LinearLayout[clickable=true] > TextView[text="关闭此条广告"]',
snapshotUrls: 'https://gkd-kit.songe.li/import/12847821', snapshotUrls: 'https://i.gkd.li/import/12847821',
}, },
], ],
}, },
@@ -207,8 +208,8 @@ export default defineAppConfig({
matches: matches:
'TextView[text = "广告"] < RelativeLayout + RelativeLayout TextView[text = "跳过"]', 'TextView[text = "广告"] < RelativeLayout + RelativeLayout TextView[text = "跳过"]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.songe.li/import/12877215', 'https://i.gkd.li/import/12877215',
'https://gkd-kit.songe.li/import/12919195', 'https://i.gkd.li/import/12919195',
], ],
}, },
], ],
@@ -220,8 +221,8 @@ export default defineAppConfig({
rules: rules:
'TextView[text.length=0&&clickable=true&&visibleToUser=true] + View > Button[text.length=0&&focusable=true]', 'TextView[text.length=0&&clickable=true&&visibleToUser=true] + View > Button[text.length=0&&focusable=true]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.songe.li/import/12914978', 'https://i.gkd.li/import/12914978',
'https://gkd-kit.songe.li/import/12914886', 'https://i.gkd.li/import/12914886',
], ],
}, },
{ {
@@ -232,14 +233,14 @@ export default defineAppConfig({
{ {
key: 0, key: 0,
matches: '[text="为你推荐"] + ImageView[id!=null][clickable=true]', matches: '[text="为你推荐"] + ImageView[id!=null][clickable=true]',
snapshotUrls: 'https://gkd-kit.songe.li/import/12929620', snapshotUrls: 'https://i.gkd.li/import/12929620',
}, },
{ {
preKeys: 0, preKeys: 0,
key: 1, key: 1,
matches: matches:
'@LinearLayout[id!=null][clickable=true] > LinearLayout > [text="减少此类推荐"]', '@LinearLayout[id!=null][clickable=true] > LinearLayout > [text="减少此类推荐"]',
snapshotUrls: 'https://gkd-kit.songe.li/import/12929619', snapshotUrls: 'https://i.gkd.li/import/12929619',
}, },
], ],
}, },