From f8351c16040964d0ea408dee2cfbf2c5bbf88f9a Mon Sep 17 00:00:00 2001 From: AIsouler Date: Sun, 10 Mar 2024 18:57:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BD=91=E6=98=93=E4=BA=91=E9=9F=B3?= =?UTF-8?q?=E4=B9=90):=20=E5=88=86=E6=AE=B5=E5=B9=BF=E5=91=8A-=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=8C=BA=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.netease.cloudmusic.ts | 43 +++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/src/apps/com.netease.cloudmusic.ts b/src/apps/com.netease.cloudmusic.ts index 83914598..c9a14e90 100644 --- a/src/apps/com.netease.cloudmusic.ts +++ b/src/apps/com.netease.cloudmusic.ts @@ -96,7 +96,7 @@ export default defineAppConfig({ }, { key: 1, - name: '评论区广告1', + name: '评论区广告', quickFind: true, activityIds: 'com.netease.cloudmusic.music.biz.comment.activity.CommentActivity', @@ -121,18 +121,6 @@ export default defineAppConfig({ 'https://m.gkd.li/57941037/ed4bb569-b3e1-4644-a586-f01d95c150e9', snapshotUrls: 'https://i.gkd.li/i/14276854', }, - { - key: 3, - name: '评论区广告2', - quickFind: true, - activityIds: - 'com.netease.cloudmusic.music.biz.comment.activity.CommentActivity', - matches: - '[vid="commentVHRootId"][visibleToUser=true] - [vid="commentVHRootId"] [vid="closeAction"][clickable=true]', - exampleUrls: - 'https://m.gkd.li/57941037/2933d8b0-7731-46bb-a644-836da1886958', - snapshotUrls: 'https://i.gkd.li/i/14318169', - }, ], }, { @@ -365,5 +353,34 @@ export default defineAppConfig({ }, ], }, + { + key: 13, + name: '分段广告-评论区广告', + desc: '点击[关闭]-点击[不感兴趣]', + quickFind: true, + activityIds: + 'com.netease.cloudmusic.music.biz.comment.activity.CommentActivity', + rules: [ + { + key: 0, + name: '点击[关闭]', + matches: + // 通过广告下方评论visibleToUser=true防止误触 + '[vid="commentVHRootId"][visibleToUser=true] - [vid="commentVHRootId"] [vid="closeAction"][clickable=true]', + exampleUrls: + 'https://m.gkd.li/57941037/2f9d5dee-c9f3-4a64-8ccd-f154c1901a12', + snapshotUrls: 'https://i.gkd.li/i/14549836', + }, + { + key: 1, + preKeys: [0], + name: '点击[不感兴趣]', + matches: '@[clickable=true] > [text="不感兴趣"]', + exampleUrls: + 'https://m.gkd.li/57941037/3750b512-4970-48ee-bc04-0c0e597702c2', + snapshotUrls: 'https://i.gkd.li/i/14549856', + }, + ], + }, ], });