mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 08:44:55 +08:00
feat(网易云音乐): 广告卡片、VIP弹窗 (#1768)
* feat(网易云音乐): 广告卡片-规则优化 * feat(网易云音乐):VIP弹窗 * chore(actions): check_format_lint * Update com.netease.cloudmusic.ts --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> close #1756 close #1735 close #1736
This commit is contained in:
@@ -15,8 +15,12 @@ export default defineAppConfig({
|
|||||||
snapshotUrls: ['https://gkd-kit.gitee.io/import/12700920'],
|
snapshotUrls: ['https://gkd-kit.gitee.io/import/12700920'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
enable: false,
|
||||||
key: 1,
|
key: 1,
|
||||||
name: '广告卡片',
|
name: '广告卡片',
|
||||||
|
desc: '点击【x】-【直接关闭】',
|
||||||
|
quickFind: true,
|
||||||
|
matchDelay: 3000,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
@@ -26,7 +30,7 @@ export default defineAppConfig({
|
|||||||
'com.netease.cloudmusic.music.biz.comment.activity.ReplyCommentActivity2',
|
'com.netease.cloudmusic.music.biz.comment.activity.ReplyCommentActivity2',
|
||||||
'com.netease.cloudmusic.music.biz.search.activity.SearchActivity',
|
'com.netease.cloudmusic.music.biz.search.activity.SearchActivity',
|
||||||
],
|
],
|
||||||
matches: '[id="com.netease.cloudmusic:id/adTagClose"]',
|
matches: '[id="com.netease.cloudmusic:id/adTagView"]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/12829944',
|
'https://i.gkd.li/import/12829944',
|
||||||
'https://gkd-kit.gitee.io/import/12723229',
|
'https://gkd-kit.gitee.io/import/12723229',
|
||||||
@@ -36,7 +40,7 @@ export default defineAppConfig({
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
preKeys: 1,
|
preKeys: 0,
|
||||||
matches: '[text="直接关闭"]',
|
matches: '[text="直接关闭"]',
|
||||||
snapshotUrls: ['https://i.gkd.li/import/12829967'],
|
snapshotUrls: ['https://i.gkd.li/import/12829967'],
|
||||||
},
|
},
|
||||||
@@ -45,6 +49,7 @@ export default defineAppConfig({
|
|||||||
{
|
{
|
||||||
key: 2,
|
key: 2,
|
||||||
name: '我的页面-中间滚动广告',
|
name: '我的页面-中间滚动广告',
|
||||||
|
quickFind: true,
|
||||||
activityIds: ['com.netease.cloudmusic.activity.MainActivity'],
|
activityIds: ['com.netease.cloudmusic.activity.MainActivity'],
|
||||||
rules:
|
rules:
|
||||||
'[id="com.netease.cloudmusic:id/auto_scroll_switcher"] + [id="com.netease.cloudmusic:id/close_btn"]',
|
'[id="com.netease.cloudmusic:id/auto_scroll_switcher"] + [id="com.netease.cloudmusic:id/close_btn"]',
|
||||||
@@ -53,6 +58,7 @@ export default defineAppConfig({
|
|||||||
{
|
{
|
||||||
key: 3,
|
key: 3,
|
||||||
name: '主页-免费听歌',
|
name: '主页-免费听歌',
|
||||||
|
quickFind: true,
|
||||||
activityIds: ['com.netease.cloudmusic.activity.MainActivity'],
|
activityIds: ['com.netease.cloudmusic.activity.MainActivity'],
|
||||||
rules: ['@ImageView + ViewGroup > TextView[text="VIP歌曲免费听30分钟"]'],
|
rules: ['@ImageView + ViewGroup > TextView[text="VIP歌曲免费听30分钟"]'],
|
||||||
snapshotUrls: ['https://i.gkd.li/import/12843383'],
|
snapshotUrls: ['https://i.gkd.li/import/12843383'],
|
||||||
@@ -80,13 +86,16 @@ export default defineAppConfig({
|
|||||||
enable: false,
|
enable: false,
|
||||||
key: 5,
|
key: 5,
|
||||||
name: 'VIP 弹窗',
|
name: 'VIP 弹窗',
|
||||||
|
quickFind: true,
|
||||||
|
matchTime: 10000,
|
||||||
|
actionMaximum: 1,
|
||||||
|
resetMatch: 'app',
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
activityIds:
|
activityIds:
|
||||||
'com.netease.cloudmusic.music.biz.rn.activity.MainProcessLayerReactNativeActivity',
|
'com.netease.cloudmusic.music.biz.rn.activity.MainProcessLayerReactNativeActivity',
|
||||||
matches:
|
matches: 'ImageView < @ViewGroup[clickable=true] - [text*="开通VIP"]',
|
||||||
'[text*="开通VIP"] + @ViewGroup[childCount=1][clickable=true] > ImageView',
|
|
||||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/13189055',
|
snapshotUrls: 'https://gkd-kit.gitee.io/import/13189055',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -95,6 +104,21 @@ export default defineAppConfig({
|
|||||||
matches: '@ImageView - ViewGroup > [text="解锁千万级会员曲库"]',
|
matches: '@ImageView - ViewGroup > [text="解锁千万级会员曲库"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13228955',
|
snapshotUrls: 'https://i.gkd.li/import/13228955',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 2,
|
||||||
|
activityIds: 'com.netease.cloudmusic.activity.PlayerActivity',
|
||||||
|
matches: '@ImageView -2 ViewGroup [text="解锁更高音质"]',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/13230603',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 3,
|
||||||
|
name: 'VIP续费',
|
||||||
|
activityIds:
|
||||||
|
'com.netease.cloudmusic.music.biz.rn.activity.MainProcessLayerReactNativeActivity',
|
||||||
|
matches:
|
||||||
|
'ImageView < @ViewGroup -3 ViewGroup [text="您的黑胶VIP已过期"]',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/13230605',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user