mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
perf(微信): 分段广告-订阅号消息内容-广告
This commit is contained in:
@@ -586,38 +586,58 @@ export default defineGkdApp({
|
|||||||
key: 35,
|
key: 35,
|
||||||
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
|
||||||
|
'com.tencent.mm.plugin.webview.ui.tools.fts.MMSosWebViewUI',
|
||||||
|
],
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
|
excludeMatches: [
|
||||||
|
// 防止在第二段、第三段出现时触发,防止在文章末尾广告关闭后触发
|
||||||
|
'[text="不感兴趣" || text="与我无关" || text="感谢你的反馈"][visibleToUser=true]',
|
||||||
|
],
|
||||||
matches:
|
matches:
|
||||||
'@[id="feedbackTagContainer"][visibleToUser=true][clickable=true] > TextView[text="广告"]', // 某些微信版本上该节点的`clickable=false`
|
'@[clickable=true][visibleToUser=true] > TextView[text="广告"][visibleToUser=true]', // 某些微信版本上该节点的`clickable=false`
|
||||||
exampleUrls: [
|
exampleUrls: [
|
||||||
'https://e.gkd.li/e73bb653-cc79-455c-958b-38aff6687c37',
|
'https://e.gkd.li/e73bb653-cc79-455c-958b-38aff6687c37',
|
||||||
'https://e.gkd.li/5915f80b-66b9-4441-9d36-3caa3fe1be58',
|
'https://e.gkd.li/5915f80b-66b9-4441-9d36-3caa3fe1be58',
|
||||||
],
|
],
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
|
'https://i.gkd.li/i/12642232', // ui.TmplWebViewMMUI
|
||||||
|
'https://i.gkd.li/i/13199281', // ui.TmplWebViewTooLMpUI
|
||||||
|
'https://i.gkd.li/i/14006180', // com.tencent.mm.plugin.webview.ui.tools.fts.MMSosWebViewUI
|
||||||
|
'https://i.gkd.li/i/15198464', // 使用excludeMatches防止在文章末尾广告关闭后误触
|
||||||
'https://i.gkd.li/i/16796663', // 内容尾部广告
|
'https://i.gkd.li/i/16796663', // 内容尾部广告
|
||||||
'https://i.gkd.li/i/16796725', // 内容中部广告
|
'https://i.gkd.li/i/16796725', // 内容中部广告
|
||||||
|
'https://i.gkd.li/i/16798663', // clickable=false,使用clickable=true避免误触
|
||||||
|
'https://i.gkd.li/i/15198455', // 无id
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 1,
|
// 第二段
|
||||||
preKeys: 0,
|
preKeys: [0],
|
||||||
matches: '[text="不感兴趣"][clickable=true]', // 为确保能够关闭尾部广告,此处点击“不感兴趣”而非“关闭此广告”
|
key: 25,
|
||||||
|
excludeMatches: '[text="感谢你的反馈"][visibleToUser=true]',
|
||||||
|
matches: '[text="不感兴趣"][clickable=true][visibleToUser=true]', // 为确保能够关闭尾部广告,此处点击“不感兴趣”而非“关闭此广告”
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/i/16796666', // 内容尾部广告
|
'https://i.gkd.li/i/16796666', // 内容尾部广告
|
||||||
'https://i.gkd.li/i/16796729', // 内容中部广告
|
'https://i.gkd.li/i/16796729', // 内容中部广告
|
||||||
|
'https://i.gkd.li/i/15061424', // 使用excludeMatches防止在文章末尾广告关闭后误触
|
||||||
|
'https://i.gkd.li/i/16798661', // clickable=false,使用clickable=true避免误触
|
||||||
|
'https://i.gkd.li/i/15198459', // 无id
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 2,
|
// 第三段
|
||||||
preKeys: 1,
|
preKeys: [25],
|
||||||
matches: '[text="与我无关"][clickable=true]',
|
key: 50,
|
||||||
|
matches: '[text="与我无关"][clickable=true][visibleToUser=true]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/i/16796674', // 内容尾部广告
|
'https://i.gkd.li/i/16796674', // 内容尾部广告
|
||||||
'https://i.gkd.li/i/16796732', // 内容中部广告
|
'https://i.gkd.li/i/16796732', // 内容中部广告
|
||||||
|
'https://i.gkd.li/i/16798658', // clickable=false,使用clickable=true避免误触
|
||||||
|
'https://i.gkd.li/i/15198461', // 无id
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user