mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 01:04:53 +08:00
feat(OMOFUN): 规则优化 (#2345)
* feat(OMOFUN):规则优化 * chore(actions): check_format_lint * Update com.cyl.musiccy.ou.ts * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> close #2253 close #2326
This commit is contained in:
@@ -7,47 +7,36 @@ export default defineAppConfig({
|
|||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
name: '开屏广告',
|
name: '开屏广告',
|
||||||
matchLauncher: true,
|
quickFind: true,
|
||||||
activityIds: ['com.cyl.musiccy.ou.MainActivity'],
|
matchTime: 10000,
|
||||||
|
actionMaximum: 1,
|
||||||
|
resetMatch: 'app',
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
matches: '[id="com.cyl.musiccy.ou:id/ksad_splash_circle_skip_view"]',
|
matches: '[text*="跳过"][text.length<=10]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12775918',
|
snapshotUrls: [
|
||||||
|
'https://i.gkd.li/import/12775918',
|
||||||
|
'https://i.gkd.li/import/12775926',
|
||||||
|
'https://i.gkd.li/import/13063151',
|
||||||
|
'https://i.gkd.li/import/13063246',
|
||||||
|
'https://i.gkd.li/import/13071599',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
matches:
|
matches:
|
||||||
'[id="com.cyl.musiccy.ou:id/ksad_splash_root_container"] [childCount=3] > @ImageView[clickable=true] - [text="|"]',
|
'[id="com.cyl.musiccy.ou:id/ksad_splash_root_container"] [childCount=3] > @ImageView[clickable=true] - [text="|"]',
|
||||||
snapshotUrls: ['https://i.gkd.li/import/12775919'],
|
snapshotUrls: ['https://i.gkd.li/import/12775919'],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
matches:
|
|
||||||
'FrameLayout > FrameLayout > [text^="跳过 "][text.length<=4][clickable=true]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12775926',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
matches: 'LinearLayout > FrameLayout > TextView[text^="跳过"]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13063151',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
matches: 'FrameLayout > LinearLayout > TextView[text^="跳过"]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13063246',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
matches:
|
|
||||||
'[id="com.cyl.musiccy.ou:id/ksad_splash_root_container"] [text="跳过"]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13071599',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
name: '首页通知',
|
name: '首页通知',
|
||||||
|
matchTime: 10000,
|
||||||
|
actionMaximum: 1,
|
||||||
|
resetMatch: 'app',
|
||||||
activityIds: ['com.cyl.musiccy.ou.MainActivity'],
|
activityIds: ['com.cyl.musiccy.ou.MainActivity'],
|
||||||
rules: [
|
rules: [
|
||||||
// {
|
|
||||||
// matches: '[desc="了解更多"] - [desc="我知道了"]',
|
|
||||||
// snapshotUrls: 'https://i.gkd.li/import/12775920',
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
matches: '[desc="我知道了"]',
|
matches: '[desc="我知道了"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13063206',
|
snapshotUrls: 'https://i.gkd.li/import/13063206',
|
||||||
@@ -58,6 +47,7 @@ export default defineAppConfig({
|
|||||||
key: 2,
|
key: 2,
|
||||||
name: '插屏广告',
|
name: '插屏广告',
|
||||||
matchLauncher: true,
|
matchLauncher: true,
|
||||||
|
actionDelay: 300,
|
||||||
activityIds: [
|
activityIds: [
|
||||||
'com.cyl.musiccy.ou.MainActivity',
|
'com.cyl.musiccy.ou.MainActivity',
|
||||||
'com.sigmob.sdk.base.common.TransparentAdActivity',
|
'com.sigmob.sdk.base.common.TransparentAdActivity',
|
||||||
@@ -65,6 +55,8 @@ export default defineAppConfig({
|
|||||||
],
|
],
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
key: 0,
|
||||||
|
quickFind: true,
|
||||||
matches: '[id="com.cyl.musiccy.ou:id/ksad_container"] [text="跳过"]',
|
matches: '[id="com.cyl.musiccy.ou:id/ksad_container"] [text="跳过"]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/12775922',
|
'https://i.gkd.li/import/12775922',
|
||||||
@@ -72,11 +64,14 @@ export default defineAppConfig({
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
key: 1,
|
||||||
matches:
|
matches:
|
||||||
'[id="com.cyl.musiccy.ou:id/ksad_container"] [text="广告"] <2 ViewGroup -2 ViewGroup > @ViewGroup[clickable=true][childCount=1] ImageView',
|
'[id="com.cyl.musiccy.ou:id/ksad_container"] [text="广告"] <2 ViewGroup -2 ViewGroup > @ViewGroup[clickable=true][childCount=1] ImageView',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12775923',
|
snapshotUrls: 'https://i.gkd.li/import/12775923',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
key: 2,
|
||||||
|
quickFind: true,
|
||||||
matches: '[id="ad_area"] [id="close_btn"][clickable=true]',
|
matches: '[id="ad_area"] [id="close_btn"][clickable=true]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/12775925',
|
'https://i.gkd.li/import/12775925',
|
||||||
@@ -84,42 +79,29 @@ export default defineAppConfig({
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
action: 'clickCenter',
|
key: 3,
|
||||||
matches:
|
matches:
|
||||||
'[text^="去"][text$="看看"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView',
|
'ImageView <n FrameLayout > FrameLayout[index=1] > FrameLayout[index=2] > ImageView',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/12775921',
|
'https://i.gkd.li/import/12775921',
|
||||||
'https://i.gkd.li/import/12776903',
|
'https://i.gkd.li/import/12776903',
|
||||||
],
|
'https://i.gkd.li/import/12789928',
|
||||||
},
|
|
||||||
// 该规则暂时不会遇到
|
|
||||||
// {
|
|
||||||
// action: 'clickCenter',
|
|
||||||
// matches:
|
|
||||||
// 'TextView[text="查看详情"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout > FrameLayout > ImageView',
|
|
||||||
// snapshotUrls: 'https://i.gkd.li/import/12789196',
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
action: 'clickCenter',
|
|
||||||
matches:
|
|
||||||
'TextView[text="立即下载"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView',
|
|
||||||
snapshotUrls: ['https://i.gkd.li/import/12789928'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
action: 'click',
|
|
||||||
matches:
|
|
||||||
'TextView[text^="摇动"||text^="点击"] <2 LinearLayout < LinearLayout < FrameLayout -n FrameLayout[childCount=1] > ImageView',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13063249',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
action: 'click',
|
|
||||||
matches:
|
|
||||||
'TextView[text="查看详情"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout > ImageView',
|
|
||||||
snapshotUrls: [
|
|
||||||
'https://i.gkd.li/import/13215476',
|
'https://i.gkd.li/import/13215476',
|
||||||
'https://i.gkd.li/import/13071595',
|
'https://i.gkd.li/import/13071595',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 4,
|
||||||
|
matches:
|
||||||
|
'ImageView <n FrameLayout - FrameLayout > FrameLayout[index=1] > ImageView',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/13063249',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 5,
|
||||||
|
matches:
|
||||||
|
'ImageView <n FrameLayout > FrameLayout[index=0] > FrameLayout FrameLayout > ImageView',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/13422363',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user