fix(微信): 读书网页版扫码登录自动授权(优化规则防止误触)、 微信小程序-开屏广告(优化规则) (#1938)

* fix 微信读书网页版扫码登录自动授权(优化规则防止误触)

* feat 微信小程序-开屏广告(优化规则)
This commit is contained in:
Kun Jinkao
2023-11-09 23:50:51 +08:00
committed by GitHub
parent 62e9c251ef
commit 394e8da584

View File

@@ -124,7 +124,7 @@ export default defineAppConfig({
activityIds: ['com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI'], activityIds: ['com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI'],
rules: [ rules: [
{ {
matches: 'Button[text="登 录"]', matches: '[text="微信读书网页版"] +3 Button[text="登 录"]',
snapshotUrls: 'https://i.gkd.li/import/12506197', snapshotUrls: 'https://i.gkd.li/import/12506197',
}, },
{ {
@@ -289,13 +289,16 @@ export default defineAppConfig({
quickFind: true, quickFind: true,
rules: [ rules: [
{ {
matches: matches: [
'[text="广告"] < FrameLayout[childCount=1] <2 FrameLayout[childCount=3] <2 FrameLayout[childCount=2] - FrameLayout[childCount=3] > FrameLayout[childCount=2] > FrameLayout[childCount=1] > [text="跳过"]', 'FrameLayout[childCount=2] > FrameLayout[childCount=3] > FrameLayout[childCount=1] > TextView[text="广告"]',
'FrameLayout[childCount<=3] > FrameLayout[childCount=2] > FrameLayout[childCount=1] > [text="跳过"]',
],
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.gitee.io/import/12701979', 'https://gkd-kit.gitee.io/import/12701979',
'https://gkd-kit.gitee.io/import/12777076', 'https://gkd-kit.gitee.io/import/12777076',
'https://gkd-kit.gitee.io/import/12785012', 'https://gkd-kit.gitee.io/import/12785012',
'https://gkd-kit.gitee.io/import/12785183', 'https://gkd-kit.gitee.io/import/12785183',
'https://i.gkd.li/import/13306883',
], ],
}, },
{ {