feat(微信): 订阅号id更新, 小程序内部广告跳过反馈 (#1589)

* Update com.tencent.mm.ts

* Update com.tencent.mm.ts

* chore(actions): check_format_lint

* Update com.tencent.mm.ts

* chore(actions): check_format_lint

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

close #1566
This commit is contained in:
walklty
2023-10-30 23:36:06 +08:00
committed by GitHub
parent 5294c7ee04
commit aa2542b65e

View File

@@ -92,6 +92,7 @@ export default defineAppConfig({
], ],
}, },
{ {
// Key1,2,3,4,11 均为授权类的规则
key: 1, key: 1,
name: '电脑微信快捷自动登录', name: '电脑微信快捷自动登录',
activityIds: '.plugin.webwx.ui.ExtDeviceWXLoginUI', activityIds: '.plugin.webwx.ui.ExtDeviceWXLoginUI',
@@ -180,16 +181,19 @@ export default defineAppConfig({
key: 6, key: 6,
name: '订阅号文章广告', name: '订阅号文章广告',
desc: '⚠ 此规则有概率误触。自动点击关闭按钮,必须同时启用【订阅号文章广告反馈】规则', desc: '⚠ 此规则有概率误触。自动点击关闭按钮,必须同时启用【订阅号文章广告反馈】规则',
activityIds: activityIds: [
'com.tencent.mm.plugin.brandservice.ui.timeline.preload.ui.TmplWebViewMMUI', 'com.tencent.mm.plugin.brandservice.ui.timeline.preload.ui.TmplWebView', //调整为TmplWebView, 同时兼容多种ID
],
rules: [ rules: [
{ {
key: 1, key: 1,
name: '广告类型1', name: '广告类型1',
matches: matches: [
'View[id="ad_container"] > View[childCount=1] >n @View > [id=null][text^="广告"][visibleToUser=true]', 'View[id="ad_container"] > View[childCount=1] >n @View > [id=null][text^="广告"][visibleToUser=true]',
],
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.gitee.io/import/12642232', 'https://gkd-kit.gitee.io/import/12642232', // ui.TmplWebViewMMUI
'https://gkd-kit.gitee.io/import/13199281', // ui.TmplWebViewTooLMpUI
'https://gkd-kit.gitee.io/import/12646837', // 事件完成后,反馈按钮仍然存在,使用 View[childCount=1] 进行限定,防止频繁触发规则 'https://gkd-kit.gitee.io/import/12646837', // 事件完成后,反馈按钮仍然存在,使用 View[childCount=1] 进行限定,防止频繁触发规则
'https://gkd-kit.gitee.io/import/12678937', // 文章未浏览至页面底部,广告反馈按钮不可见,使用 [visibleToUser=true] 进行限定,防止打开文章就频繁触发规则 'https://gkd-kit.gitee.io/import/12678937', // 文章未浏览至页面底部,广告反馈按钮不可见,使用 [visibleToUser=true] 进行限定,防止打开文章就频繁触发规则
'https://gkd-kit.gitee.io/import/12714427', // 优化规则,使用 View[id="ad_container"] 作为特征节点 'https://gkd-kit.gitee.io/import/12714427', // 优化规则,使用 View[id="ad_container"] 作为特征节点
@@ -235,7 +239,7 @@ export default defineAppConfig({
name: '订阅号文章广告反馈', name: '订阅号文章广告反馈',
desc: '⚠ 此规则有概率误触。自动点击反馈理由,配合【订阅号文章广告】规则使用', desc: '⚠ 此规则有概率误触。自动点击反馈理由,配合【订阅号文章广告】规则使用',
activityIds: activityIds:
'com.tencent.mm.plugin.brandservice.ui.timeline.preload.ui.TmplWebViewMMUI', 'com.tencent.mm.plugin.brandservice.ui.timeline.preload.ui.TmplWebView', //调整为TmplWebView, 同时兼容多种ID
rules: [ rules: [
{ {
key: 1, key: 1,
@@ -324,5 +328,43 @@ export default defineAppConfig({
}, },
], ],
}, },
{
enable: false,
key: 14,
name: '小程序-内部广告',
desc: '需同时开启"小程序-内部广告-反馈"',
activityIds: ['com.tencent.mm.plugin.appbrand.ui.AppBrandUI'],
quickFind: true,
rules: [
{
matches:
'FrameLayout[childCount=3] >n FrameLayout > FrameLayout > [text="广告"][visibleToUser=true]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/13199282', //[childCount=3]避免在点击展开菜单后重复点击
],
},
],
},
{
enable: false,
key: 15,
name: '小程序-内部广告-反馈',
desc: '需同时开启"小程序-内部广告"',
activityIds: ['com.tencent.mm.plugin.appbrand.ui.AppBrandUI'],
quickFind: true,
rules: [
{
matches: '[text="不感兴趣"][visibleToUser=true]',
snapshotUrls: ['https://i.gkd.li/import/13200044'],
},
{
matches: '[text="与我无关"][visibleToUser=true]',
snapshotUrls: ['https://i.gkd.li/import/13200048'],
},
{
matches: '[text="关闭此广告"][visibleToUser=true]', //预防性规则,目前没有快照
},
],
},
], ],
}); });