mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-19 16:25:09 +08:00
feat(微信): 移除订阅号文章广告规则
微信将所有广告反馈节点更改为了clickable=false,点击方式只能为clickcenter,导致反馈节点被其他节点遮罩时误触
This commit is contained in:
@@ -476,7 +476,7 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [
|
|||||||
{
|
{
|
||||||
id: 'com.tencent.mm',
|
id: 'com.tencent.mm',
|
||||||
name: '微信',
|
name: '微信',
|
||||||
deprecatedKeys: [3, 8, 12, 13, 14, 16, 20, 21, 23, 24, 27, 33],
|
deprecatedKeys: [3, 6, 8, 12, 13, 14, 16, 20, 21, 23, 24, 27, 33],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'com.tencent.mobileqq',
|
id: 'com.tencent.mobileqq',
|
||||||
|
|||||||
@@ -227,71 +227,6 @@ export default defineGkdApp({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 6,
|
|
||||||
name: '分段广告-订阅号文章广告',
|
|
||||||
desc: '点击[广告]按钮-点击[关闭此广告]/[不感兴趣]-点击[与我无关]',
|
|
||||||
forcedTime: 3000,
|
|
||||||
activityIds: [
|
|
||||||
'com.tencent.mm.plugin.brandservice.ui.timeline.preload.ui.TmplWebView', //调整为TmplWebView, 同时兼容多种ID
|
|
||||||
'com.tencent.mm.plugin.webview.ui.tools.fts.MMSosWebViewUI',
|
|
||||||
],
|
|
||||||
// 不使用 preKeys 提高点击成功率
|
|
||||||
rules: [
|
|
||||||
// 第一段
|
|
||||||
{
|
|
||||||
key: 1,
|
|
||||||
name: '点击[广告]按钮',
|
|
||||||
// 防止在第二段、第三段、出现时触发,防止在文章末尾广告关闭后触发
|
|
||||||
excludeMatches: [
|
|
||||||
'[text="不感兴趣" || text="与我无关" || text="感谢你的反馈"][visibleToUser=true]',
|
|
||||||
],
|
|
||||||
matches: '[text="广告"][visibleToUser=true]',
|
|
||||||
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/14834975', // 文章未浏览至页面底部,广告反馈按钮不可见,使用 [visibleToUser=true] 进行限定,防止打开文章就频繁触发规则
|
|
||||||
'https://i.gkd.li/i/15198464', // 使用excludeMatches防止在文章末尾广告关闭后误触
|
|
||||||
'https://i.gkd.li/i/15198413', // 无id
|
|
||||||
'https://i.gkd.li/i/15198455', // 无id
|
|
||||||
],
|
|
||||||
},
|
|
||||||
// 第二段
|
|
||||||
{
|
|
||||||
key: 25,
|
|
||||||
name: '点击[关闭此广告]',
|
|
||||||
matches: '[text="关闭此广告"][visibleToUser=true]',
|
|
||||||
snapshotUrls: [
|
|
||||||
'https://i.gkd.li/i/14834975',
|
|
||||||
'https://i.gkd.li/i/15198422', // 无id
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 26,
|
|
||||||
name: '点击[不感兴趣]',
|
|
||||||
excludeMatches: '[text="感谢你的反馈"][visibleToUser=true]',
|
|
||||||
matches: '[text="不感兴趣"][visibleToUser=true]',
|
|
||||||
snapshotUrls: [
|
|
||||||
'https://i.gkd.li/i/14006203',
|
|
||||||
'https://i.gkd.li/i/14834966',
|
|
||||||
'https://i.gkd.li/i/15061424', // 使用excludeMatches防止在文章末尾广告关闭后误触
|
|
||||||
'https://i.gkd.li/i/15198459', // 无id
|
|
||||||
],
|
|
||||||
},
|
|
||||||
// 第三段
|
|
||||||
{
|
|
||||||
key: 50,
|
|
||||||
name: '点击[与我无关]',
|
|
||||||
matches: '[text="与我无关"][visibleToUser=true]',
|
|
||||||
snapshotUrls: [
|
|
||||||
'https://i.gkd.li/i/14006206',
|
|
||||||
'https://i.gkd.li/i/14834959',
|
|
||||||
'https://i.gkd.li/i/15198461', // 无id
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 7,
|
key: 7,
|
||||||
name: '功能类-自动选中发送原图',
|
name: '功能类-自动选中发送原图',
|
||||||
|
|||||||
Reference in New Issue
Block a user