mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
perf: some rules
This commit is contained in:
@@ -717,6 +717,11 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [
|
||||
name: '哔哩哔哩HD',
|
||||
deprecatedKeys: [1],
|
||||
},
|
||||
{
|
||||
id: 'com.umetrip.android.msky.app',
|
||||
name: '航旅纵横',
|
||||
deprecatedKeys: [8],
|
||||
},
|
||||
];
|
||||
|
||||
const map: Map<string, number[]> = new Map();
|
||||
|
||||
@@ -8,19 +8,15 @@ export default defineGkdApp({
|
||||
key: 0,
|
||||
name: '全屏广告-弹窗广告',
|
||||
desc: '点击关闭',
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: [
|
||||
{
|
||||
fastQuery: true,
|
||||
activityIds: [
|
||||
'com.bankcomm.module.biz.home.MainActivity',
|
||||
'com.hihonor.android.launcher.unihome.UniHomeLauncher',
|
||||
],
|
||||
matches: '[vid="popup_ad_image"] <n * > [vid="popup_close"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/12671987',
|
||||
'https://i.gkd.li/i/12745293',
|
||||
'https://i.gkd.li/i/15046998',
|
||||
],
|
||||
activityIds: 'com.bankcomm.module.biz.home.MainActivity',
|
||||
matches: '[vid="popup_close"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/15046998',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -90,7 +90,7 @@ export default defineGkdApp({
|
||||
preKeys: [1],
|
||||
key: 2,
|
||||
name: '点击[不感兴趣]/[关闭]',
|
||||
matches: '@[text="不感兴趣" || text="关闭"] <n * > [text*="广告"]',
|
||||
matches: '[text="不感兴趣" || text="关闭"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/14959519',
|
||||
'https://i.gkd.li/i/14964859',
|
||||
|
||||
@@ -91,7 +91,7 @@ export default defineGkdApp({
|
||||
key: 1,
|
||||
fastQuery: true,
|
||||
activityIds: 'com.ct.client.activity.MainActivity',
|
||||
matches: '[text^="开启消息通知"] <n * > [vid="ivClose"]',
|
||||
matches: '[text^="开启消息通知"] - [vid="ivClose"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/15209597',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -53,6 +53,7 @@ export default defineGkdApp({
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
fastQuery: true,
|
||||
activityIds: [
|
||||
'com.cyl.musiccy.ou.MainActivity',
|
||||
'com.ksf.yyx.MainActivity',
|
||||
@@ -68,12 +69,13 @@ export default defineGkdApp({
|
||||
{
|
||||
key: 1,
|
||||
name: '快手广告-2',
|
||||
fastQuery: true,
|
||||
activityIds: [
|
||||
'com.ksf.yyx.MainActivity',
|
||||
'com.cyl.musiccy.ou.MainActivity',
|
||||
],
|
||||
matches:
|
||||
'[text="广告"] <2 ViewGroup -2 ViewGroup > @ViewGroup[clickable=true] > ImageView',
|
||||
'ImageView[childCount=0][text=null] < @ViewGroup[childCount=1][clickable=true][visibleToUser=true] < ViewGroup +n ViewGroup[childCount=2] > [text="广告"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/12775923',
|
||||
'https://i.gkd.li/i/13800051',
|
||||
@@ -96,34 +98,29 @@ export default defineGkdApp({
|
||||
{
|
||||
key: 3,
|
||||
name: '腾讯广告-1',
|
||||
fastQuery: true,
|
||||
activityIds: [
|
||||
'com.ksf.yyx.MainActivity',
|
||||
'com.android.internal.app.ResolverActivity',
|
||||
],
|
||||
matches:
|
||||
'ImageView <n FrameLayout > FrameLayout[index=1] > FrameLayout[index=2] > ImageView',
|
||||
'@ImageView[childCount=0][text=null][desc=null][id=null][visibleToUser=true][width<90 && height<90] < FrameLayout[childCount=1][text=null][desc=null][id=null][parent.childCount>3] +n FrameLayout >(1,2) [text^="立即" || text="查看详情" || text="了解更多" || text="去微信看看" || text$="应用" || text="进入小程序" || text="领取优惠" || text="跳转微信"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/12775921',
|
||||
'https://i.gkd.li/i/12776903',
|
||||
'https://i.gkd.li/i/12789928',
|
||||
'https://i.gkd.li/i/13215476',
|
||||
'https://i.gkd.li/i/13071595',
|
||||
'https://i.gkd.li/i/13063249',
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
name: '腾讯广告-2',
|
||||
activityIds: 'com.cyl.musiccy.ou.MainActivity',
|
||||
matches:
|
||||
'ImageView <n FrameLayout - FrameLayout > FrameLayout[index=1] > ImageView',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13063249',
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
name: '腾讯广告-3',
|
||||
name: '腾讯广告-2',
|
||||
fastQuery: true,
|
||||
activityIds: 'com.cyl.musiccy.ou.MainActivity',
|
||||
matches:
|
||||
'ImageView <n FrameLayout > FrameLayout[index=0] > FrameLayout FrameLayout > ImageView',
|
||||
'@ImageView[childCount=0][text=null][desc=null][id=null][visibleToUser=true][width<90 && height<90] < FrameLayout[childCount=1][text=null][desc=null][id=null] <2 FrameLayout[childCount=5] + FrameLayout[childCount=2] > [text^="立即" || text="查看详情" || text="了解更多" || text="去逛逛" || text="去微信看看" || text$="应用" || text="进入小程序" || text="领取优惠" || text="跳转微信"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13422363',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -214,7 +214,7 @@ export default defineGkdApp({
|
||||
fastQuery: true,
|
||||
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
|
||||
matches:
|
||||
'@ImageView[clickable=true][visibleToUser=true] <n * > [text="领取限时福利"]',
|
||||
'@ImageView[clickable=true][visibleToUser=true] +5 [text="领取限时福利"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/14430326',
|
||||
'https://i.gkd.li/i/14969861',
|
||||
|
||||
@@ -100,7 +100,10 @@ export default defineGkdApp({
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
matches: '[text="立即更新" || text="马上体验"] <n * > [text*="稍后"]',
|
||||
matches: [
|
||||
'[text="立即更新" || text="马上体验"]',
|
||||
'[text^="稍后"][text.length=4]',
|
||||
],
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/13327095',
|
||||
'https://i.gkd.li/i/15010554',
|
||||
|
||||
@@ -82,14 +82,18 @@ export default defineGkdApp({
|
||||
name: '权限提示-通知权限',
|
||||
desc: '点击关闭',
|
||||
fastQuery: true,
|
||||
//matchTime: 10000, 该弹窗可能在多个页面出现
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
activityIds: [
|
||||
'.MainFrameActivity',
|
||||
'com.jd.lib.message.messagecenter.view.activity.MessageCenterMainActivityNew',
|
||||
],
|
||||
matches:
|
||||
'@ImageView[clickable=true][visibleToUser=true] <n * > [text="开启消息通知"]',
|
||||
'@ImageView[clickable=true][visibleToUser=true] -(9,12) [text="开启消息通知"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/13917163',
|
||||
'https://i.gkd.li/i/13463618',
|
||||
@@ -98,6 +102,8 @@ export default defineGkdApp({
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
activityIds:
|
||||
'com.jd.lib.message.messagecenter.view.activity.MessageCenterMainActivityNew',
|
||||
matches: '@[clickable=true] + [text^="打开系统通知"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/12839865',
|
||||
},
|
||||
|
||||
@@ -28,7 +28,8 @@ export default defineGkdApp({
|
||||
key: 0,
|
||||
fastQuery: true,
|
||||
activityIds: 'com.yxcorp.gifshow.HomeActivity',
|
||||
matches: '@[vid="close_btn"] <n * > [text="朋友推荐"]',
|
||||
matches:
|
||||
'[vid="popup_view" || vid="content_wrapper"] > [vid="close_btn"][visibleToUser=true]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/14310639',
|
||||
'https://i.gkd.li/i/15061832',
|
||||
@@ -45,7 +46,7 @@ export default defineGkdApp({
|
||||
fastQuery: true,
|
||||
activityIds: 'com.yxcorp.gifshow.HomeActivity',
|
||||
matches:
|
||||
'@ImageView[clickable=true] - ViewGroup[childCount=3] <n * >n [text*="红包"]',
|
||||
'@ImageView[clickable=true] <(2,3) ViewGroup >(1,4) [text*="红包"]',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/101449500/f7bbd1db-f519-4ff9-96cb-4cb5b2f483a2',
|
||||
snapshotUrls: [
|
||||
|
||||
@@ -54,13 +54,12 @@ export default defineGkdApp({
|
||||
fastQuery: true,
|
||||
activityIds: 'com.kugou.android.app.MediaActivity',
|
||||
matches:
|
||||
'TextView[text!=null] <n ViewGroup > @ImageView[desc="关闭"][visibleToUser=true][clickable=true] <<n [id="android:id/list"]',
|
||||
'@ImageView[desc="关闭"][visibleToUser=true][clickable=true] <n ViewGroup < LinearLayout <3 [id="android:id/list"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/14964889',
|
||||
'https://i.gkd.li/i/15024041',
|
||||
'https://i.gkd.li/i/15468481',
|
||||
'https://i.gkd.li/i/16200618',
|
||||
'https://i.gkd.li/i/17088057', // 避免误触
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -73,7 +72,7 @@ export default defineGkdApp({
|
||||
key: 3,
|
||||
fastQuery: true,
|
||||
activityIds: 'com.kugou.android.app.MediaActivity',
|
||||
matches: '@ImageView[clickable=true] <n * > [text="广告"]',
|
||||
matches: '@ImageView[clickable=true] - [text="广告"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/15520336',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ export default defineGkdApp({
|
||||
groups: [
|
||||
{
|
||||
key: 3,
|
||||
name: '分段广告-交友页面底部广告',
|
||||
name: '局部广告-交友页面底部广告',
|
||||
activityIds: [
|
||||
'com.maxhom.weibu.tool.home.activity.NewMainActivity',
|
||||
'com.maxhom.weibu.WelcomeActivity',
|
||||
@@ -14,9 +14,13 @@ export default defineGkdApp({
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
name: '类型1-点击右侧X',
|
||||
fastQuery: true,
|
||||
activityIds: [
|
||||
'.tool.home.activity.NewMainActivity',
|
||||
'.WelcomeActivity',
|
||||
],
|
||||
matches: [
|
||||
'TextView[text.length>0] < FrameLayout + FrameLayout > ImageView',
|
||||
'@ImageView[childCount=0][visibleToUser=true] < FrameLayout[childCount=1] <3 FrameLayout < FrameLayout < FrameLayout < FrameLayout < FrameLayout < FrameLayout < FrameLayout < [id="com.maxhom.weibu:id/flAd"][visibleToUser=true]',
|
||||
],
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/13377607',
|
||||
@@ -24,18 +28,11 @@ export default defineGkdApp({
|
||||
'https://i.gkd.li/i/13728552',
|
||||
],
|
||||
},
|
||||
{
|
||||
preKeys: 0,
|
||||
key: 1,
|
||||
name: '类型1-点击弹出窗口的X',
|
||||
matches:
|
||||
'[text.length>=2&&text.length<=6] <n FrameLayout < FrameLayout - FrameLayout > ImageView',
|
||||
snapshotUrls: ['https://i.gkd.li/i/13377611'],
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
name: '类型2-点击右侧X',
|
||||
matches: ['[id="com.maxhom.weibu:id/anythink_myoffer_banner_close"]'],
|
||||
fastQuery: true,
|
||||
activityIds: '.tool.home.activity.NewMainActivity',
|
||||
matches: '[id="com.maxhom.weibu:id/anythink_myoffer_banner_close"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/13702305',
|
||||
'https://i.gkd.li/i/13702339',
|
||||
@@ -47,19 +44,28 @@ export default defineGkdApp({
|
||||
{
|
||||
key: 4,
|
||||
name: '全屏广告-漂流瓶页面提示弹窗',
|
||||
fastQuery: true,
|
||||
activityIds: [
|
||||
'com.maxhom.weibu.tool.home.activity.ToolBottleActivity',
|
||||
'com.maxhom.weibu.tool.home.activity.NewMainActivity',
|
||||
],
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
fastQuery: true,
|
||||
activityIds: [
|
||||
'.tool.home.activity.ToolBottleActivity',
|
||||
'.tool.home.activity.NewMainActivity',
|
||||
],
|
||||
matches: '[id="com.maxhom.weibu:id/ivClose"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/13377649',
|
||||
'https://i.gkd.li/i/13457015',
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
fastQuery: true,
|
||||
activityIds: '.tool.home.activity.NewMainActivity',
|
||||
matches:
|
||||
'@ImageView[childCount=0][visibleToUser=true] < FrameLayout[childCount=1] + FrameLayout >2 [text="立即下载"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13377611',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ export default defineGkdApp({
|
||||
activityIds:
|
||||
'com.mfcloudcalculate.networkdisk.activity.EmptyActivity',
|
||||
matches:
|
||||
'ImageView < @ViewGroup[clickable=true] < ViewGroup <n ViewGroup + ViewGroup [text="广告"]',
|
||||
'ImageView < @ViewGroup[clickable=true] < ViewGroup <7 ViewGroup + ViewGroup [text="广告"]',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/57941037/cf43eaec-45f8-4e1a-bd3b-6a88fd055d29',
|
||||
snapshotUrls: 'https://i.gkd.li/i/16154340',
|
||||
|
||||
@@ -397,7 +397,7 @@ export default defineGkdApp({
|
||||
{
|
||||
fastQuery: true,
|
||||
activityIds: 'com.netease.cloudmusic.activity.MainActivity',
|
||||
matches: '@ImageView[clickable=true] <n * > [text="查看我的勋章"]',
|
||||
matches: '@ImageView[clickable=true] +7 [text="查看我的勋章"]',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/57941037/39e34e7d-eae3-4a54-9794-97c2528d13fb',
|
||||
snapshotUrls: 'https://i.gkd.li/i/14926750',
|
||||
|
||||
@@ -189,7 +189,7 @@ export default defineGkdApp({
|
||||
resetMatch: 'app',
|
||||
rules: [
|
||||
{
|
||||
matches: '@[vid="iv_close" || text="跳过"] <n * > [text^="开启通知"]',
|
||||
matches: '@[vid="iv_close" || text="跳过"] -(1,2) [text^="开启通知"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/13439134',
|
||||
'https://i.gkd.li/i/15047918',
|
||||
|
||||
@@ -160,8 +160,10 @@ export default defineGkdApp({
|
||||
desc: '点击X',
|
||||
rules: [
|
||||
{
|
||||
fastQuery: true,
|
||||
activityIds: 'com.tencent.qqmusiccommon.hybrid.HybridViewActivity',
|
||||
matches: '@[desc="关闭按钮"] <n * > [desc^="看广告"]',
|
||||
matches:
|
||||
'@ViewGroup[desc="关闭按钮"] - [desc^="看广告"] <2 ViewGroup < ViewGroup < FrameLayout < FrameLayout < FrameLayout < [id="android:id/content"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13806773',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -4,15 +4,6 @@ export default defineGkdApp({
|
||||
id: 'com.umetrip.android.msky.app',
|
||||
name: '航旅纵横',
|
||||
groups: [
|
||||
{
|
||||
key: 8,
|
||||
name: '全屏广告-弹窗广告',
|
||||
fastQuery: true,
|
||||
activityIds: 'com.ume.lib_weex.view.WeexActivity',
|
||||
rules:
|
||||
'View[desc="立即预订"] <n FrameLayout <n FrameLayout <n FrameLayout <n ViewPager <n FrameLayout + FrameLayout > ImageView[id=null]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/12909632',
|
||||
},
|
||||
{
|
||||
key: 9,
|
||||
name: '更新提示',
|
||||
|
||||
@@ -328,7 +328,7 @@ export default defineGkdApp({
|
||||
fastQuery: true,
|
||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||
matches:
|
||||
'[((text$="领取" || text^="立即") && text.length<5) || text^="此云盘为您的私人云盘"] <n * > [vid="close"]',
|
||||
'[text="立即领取" || text="点击领取" || text^="此云盘为您的私人云盘"] + [vid="close"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/12882939',
|
||||
'https://i.gkd.li/i/15048352',
|
||||
|
||||
@@ -19,8 +19,10 @@ export default defineGkdApp({
|
||||
{
|
||||
key: 1,
|
||||
name: '腾讯SDK',
|
||||
fastQuery: true,
|
||||
activityIds: 'com.tvmain.mvp.view.activity.TvMainActivity',
|
||||
matches: '@ImageView < FrameLayout <n FrameLayout + TextView',
|
||||
matches:
|
||||
'@ImageView[childCount=0][visibleToUser=true] < FrameLayout[childCount=1] <2 FrameLayout < FrameLayout < FrameLayout < FrameLayout < FrameLayout < [id="android:id/content"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13766516',
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user