mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-19 00:05:19 +08:00
perf: 微信-分段广告-订阅号文章内广告 #1025
This commit is contained in:
@@ -563,8 +563,8 @@ export default defineGkdApp({
|
||||
},
|
||||
{
|
||||
key: 35,
|
||||
name: '分段广告-订阅号消息内容-广告',
|
||||
desc: '点击下拉框-[关闭此广告]/[不感兴趣]-[与我无关]',
|
||||
name: '分段广告-订阅号文章内广告',
|
||||
desc: '注意⚠️:该规则有概率误触,请谨慎开启',
|
||||
activityIds: [
|
||||
'.plugin.brandservice.ui.timeline.preload.ui.TmplWebView', //调整为TmplWebView, 同时兼容多种ID
|
||||
'.plugin.webview.ui.tools.fts.MMSosWebViewUI',
|
||||
@@ -578,7 +578,7 @@ export default defineGkdApp({
|
||||
'[text="不感兴趣" || text="与我无关" || text="感谢你的反馈"][visibleToUser=true]',
|
||||
],
|
||||
matches:
|
||||
'@[clickable=true][visibleToUser=true] > TextView[text^="广告"][visibleToUser=true]', // 某些微信版本上该节点的`clickable=false`
|
||||
'@View[childCount<5] > [text^="广告"][text.length<4][visibleToUser=true]', // 某些微信版本上该节点的`clickable=false`
|
||||
exampleUrls: [
|
||||
'https://e.gkd.li/e73bb653-cc79-455c-958b-38aff6687c37',
|
||||
'https://e.gkd.li/5915f80b-66b9-4441-9d36-3caa3fe1be58',
|
||||
@@ -590,7 +590,7 @@ export default defineGkdApp({
|
||||
'https://i.gkd.li/i/17093010', // .plugin.webview.ui.tools.MMWebViewUI
|
||||
'https://i.gkd.li/i/16796663', // 内容尾部广告
|
||||
'https://i.gkd.li/i/16796725', // 内容中部广告
|
||||
'https://i.gkd.li/i/16798663', // clickable=false,使用clickable=true避免误触
|
||||
'https://i.gkd.li/i/16798663', // clickable=false
|
||||
'https://i.gkd.li/i/15198455', // 无id
|
||||
'https://i.gkd.li/i/17276697', // text="广告 ",有空格
|
||||
],
|
||||
@@ -602,7 +602,7 @@ export default defineGkdApp({
|
||||
// 第二段-有“关闭此广告”按钮,则直接关闭该广告
|
||||
preKeys: [0],
|
||||
key: 20,
|
||||
matches: '[text="关闭此广告"][clickable=true][visibleToUser=true]',
|
||||
matches: '[text="关闭此广告"][visibleToUser=true]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/16796729', // 内容中部广告
|
||||
'https://i.gkd.li/i/17113565', // 在某些情况下,点击“不感兴趣”会导致无法执行下一步操作,因此点击“关闭此广告”
|
||||
@@ -614,12 +614,12 @@ export default defineGkdApp({
|
||||
key: 25,
|
||||
excludeMatches: [
|
||||
'[text="感谢你的反馈"][visibleToUser=true]',
|
||||
'[text="关闭此广告"][clickable=true][visibleToUser=true]',
|
||||
'[text="关闭此广告"][visibleToUser=true]',
|
||||
],
|
||||
matches: '[text="不感兴趣"][clickable=true][visibleToUser=true]', // 为确保能够关闭尾部广告,此处点击“不感兴趣”而非“关闭此广告”
|
||||
matches: '[text="不感兴趣"][visibleToUser=true]', // 为确保能够关闭尾部广告,此处点击“不感兴趣”而非“关闭此广告”
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/16796666', // 内容尾部广告
|
||||
'https://i.gkd.li/i/16798661', // clickable=false,使用clickable=true避免误触
|
||||
'https://i.gkd.li/i/16798661', // clickable=false
|
||||
'https://i.gkd.li/i/15198459', // 无id
|
||||
],
|
||||
excludeSnapshotUrls: [
|
||||
@@ -631,11 +631,11 @@ export default defineGkdApp({
|
||||
// 第三段
|
||||
preKeys: [25],
|
||||
key: 50,
|
||||
matches: '[text="与我无关"][clickable=true][visibleToUser=true]',
|
||||
matches: '[text="与我无关"][visibleToUser=true]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/16796674', // 内容尾部广告
|
||||
'https://i.gkd.li/i/16796732', // 内容中部广告
|
||||
'https://i.gkd.li/i/16798658', // clickable=false,使用clickable=true避免误触
|
||||
'https://i.gkd.li/i/16798658', // clickable=false
|
||||
'https://i.gkd.li/i/15198461', // 无id
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user