Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

feat(微音乐):功能类-看视频免广告自动化 #3972

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 34 additions & 3 deletions src/apps/com.zhouyu.music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineAppConfig({
groups: [
{
key: 1,
name: '广告弹窗',
name: '全屏广告-广告弹窗',
activityIds: 'com.zhouyu.music.activities.MainActivity',
rules: '@[id=null][clickable=true] + View >n View [text$="广告"]',
snapshotUrls: [
Expand All @@ -19,14 +19,45 @@ export default defineAppConfig({
},
{
key: 2,
name: '搜索底部广告',
name: '局部广告-搜索底部广告',
quickFind: true,

activityIds: 'com.zhouyu.music.activities.MainActivity',
rules: '[id="com.zhouyu.music:id/ksad_ad_dislike"]',
snapshotUrls: [
'https://i.gkd.li/import/13245859', //launcher
],
},
{
key: 3,
quickFind: true,
name: '功能类-看视频免广告自动化',
desc: '点击静音-倒计时结束后点击X-点击确定',
rules: [
{
key: 0,
name: '点击静音',
actionMaximum: 1, //由于静音前后控件没有区别,故设置最大触发次数
resetMatch: 'app', //之所以不设置activity是因为进入广告时会刷新两次activity,触发两次点击导致静音失效
activityIds: 'com.kwad.sdk.api.proxy.app.KsRewardVideoActivity',
matches: '[id="com.zhouyu.music:id/ksad_video_sound_switch"]',
snapshotUrls: 'https://i.gkd.li/import/13974721',
},
{
key: 1,
name: '倒计时结束后点击右上角X',
activityIds: 'com.kwad.sdk.api.proxy.app.KsRewardVideoActivity',
matches:
'[id="com.zhouyu.music:id/ksad_play_end_top_toolbar"] > [vid="ksad_end_close_btn"]',
snapshotUrls: 'https://i.gkd.li/import/13974632',
},
{
key: 2,
name: '点击退出广告后的确定弹窗',
activityIds: 'com.zhouyu.music.activities.MainActivity',
matches: '[text="免广告成功"] +3 * > [text="确定"]',
snapshotUrls: 'https://i.gkd.li/import/13974655',
},
],
},
],
});