fix(哔哩哔哩): 全屏广告-会员弹窗误触

This commit is contained in:
AIsouler
2024-08-07 22:22:40 +08:00
parent 93ced015d8
commit eecb65b5a6

View File

@@ -258,16 +258,6 @@ export default defineGkdApp({
forcedTime: 10000, forcedTime: 10000,
actionMaximum: 1, actionMaximum: 1,
rules: [ rules: [
{
key: 0,
order: -1, // 避免触发 key1 造成误触
activityIds: 'com.bilibili.vip.web.VipWebActivity',
matches:
'WebView[text="会员中心"] >4 [text="大会员服务协议"] +2 * >2 @TextView[visibleToUser=true][index=1] <<n [vid="webview"]',
exampleUrls:
'https://m.gkd.li/57941037/5392d5f5-004b-422b-b55b-ea07fa8a2c2c',
snapshotUrls: 'https://i.gkd.li/i/15289942',
},
{ {
key: 1, key: 1,
activityIds: [ activityIds: [
@@ -275,12 +265,13 @@ export default defineGkdApp({
'com.bilibili.vip.web.VipWebActivity', 'com.bilibili.vip.web.VipWebActivity',
], ],
matches: matches:
'WebView[text="会员中心"] >4 [text="大会员服务协议"] +2 * >2 @TextView[visibleToUser=true][index=0] <<n [vid="webview"]', 'WebView[text="会员中心"] >4 [text="大会员服务协议"] +2 * >2 @TextView[visibleToUser=true][index=parent.childCount.minus(1)] <<n [vid="webview"]',
exampleUrls: exampleUrls:
'https://m.gkd.li/57941037/60eee9aa-8799-4097-8ddf-2783afd49586', 'https://m.gkd.li/57941037/60eee9aa-8799-4097-8ddf-2783afd49586',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/i/15219142', 'https://i.gkd.li/i/15219142',
'https://i.gkd.li/i/15220560', 'https://i.gkd.li/i/15220560',
'https://i.gkd.li/i/15289942',
], ],
}, },
{ {