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:
@@ -40,7 +40,7 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [
|
||||
{
|
||||
id: 'air.tv.douyu.android',
|
||||
name: '斗鱼',
|
||||
deprecatedKeys: [0, 1],
|
||||
deprecatedKeys: [0, 1, 2],
|
||||
},
|
||||
{
|
||||
id: 'android.zhibo8',
|
||||
@@ -60,7 +60,7 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [
|
||||
{
|
||||
id: 'client.android.yixiaotong',
|
||||
name: '乐校通',
|
||||
deprecatedKeys: [0],
|
||||
deprecatedKeys: [0, 3],
|
||||
},
|
||||
{
|
||||
id: 'cmb.pb',
|
||||
|
||||
@@ -14,6 +14,7 @@ export default defineGkdApp({
|
||||
resetMatch: 'app',
|
||||
rules: [
|
||||
{
|
||||
activityIds: '.page.activity.MainActivity',
|
||||
matches: ['[text="通知服务未开启"]', '[text="取消"]'],
|
||||
snapshotUrls: 'https://i.gkd.li/i/15796616',
|
||||
},
|
||||
|
||||
@@ -4,14 +4,6 @@ export default defineGkdApp({
|
||||
id: 'air.tv.douyu.android',
|
||||
name: '斗鱼',
|
||||
groups: [
|
||||
{
|
||||
key: 2,
|
||||
name: '更新提示',
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: '[text="立即升级"] - [text="忽略"][clickable=true]',
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
name: '局部广告-直播间广告',
|
||||
|
||||
@@ -11,8 +11,13 @@ export default defineGkdApp({
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: 'LinearLayoutCompat @[text="取消"] + [text="更新"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13561226',
|
||||
rules: [
|
||||
{
|
||||
activityIds: 'bin.mt.plus.Main',
|
||||
matches: '@[text="取消"] + [text="更新"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13561226',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -8,10 +8,12 @@ export default defineGkdApp({
|
||||
key: 1,
|
||||
name: '更新提示',
|
||||
fastQuery: true,
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: [
|
||||
{
|
||||
activityIds: '.Main',
|
||||
matches: ['[text="更新"]', '[text="取消"]'],
|
||||
snapshotUrls: 'https://i.gkd.li/i/16050794',
|
||||
},
|
||||
|
||||
@@ -22,12 +22,17 @@ export default defineGkdApp({
|
||||
{
|
||||
key: 2,
|
||||
name: '更新提示',
|
||||
fastQuery: true,
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
fastQuery: true,
|
||||
rules: '[text="发现新版本"] +2 * > [text="暂不升级"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13545953',
|
||||
rules: [
|
||||
{
|
||||
activityIds: '.home.ui.HomeActivity',
|
||||
matches: '[text="暂不升级"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13545953',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -10,8 +10,10 @@ export default defineGkdApp({
|
||||
desc: '点击关闭',
|
||||
rules: [
|
||||
{
|
||||
fastQuery: true,
|
||||
activityIds: 'com.google.android.gms.ads.AdActivity',
|
||||
matches: '[desc="Interstitial close button"][visibleToUser=true]',
|
||||
matches:
|
||||
'@ImageButton[desc="Interstitial close button"][visibleToUser=true] < FrameLayout <2 RelativeLayout < [id="android:id/content"]',
|
||||
exampleUrls: 'https://e.gkd.li/1ab940d5-88b8-4088-81fe-9cb72c4cbd53',
|
||||
snapshotUrls: 'https://i.gkd.li/i/17058992',
|
||||
},
|
||||
|
||||
@@ -7,9 +7,15 @@ export default defineGkdApp({
|
||||
{
|
||||
key: 1,
|
||||
name: '局部广告-首页顶部横幅广告',
|
||||
activityIds: 'chuxin.shimo.shimowendang.MainActivity',
|
||||
rules: '[desc="banner-desktop-announcement-close"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13627960',
|
||||
rules: [
|
||||
{
|
||||
fastQuery: true,
|
||||
activityIds: 'chuxin.shimo.shimowendang.MainActivity',
|
||||
matches:
|
||||
'@[desc="banner-desktop-announcement-close"][visibleToUser=true] - ViewGroup > [text*="免费试用企业版"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13627960',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -9,9 +9,15 @@ export default defineGkdApp({
|
||||
name: '全屏广告-弹窗广告',
|
||||
fastQuery: true,
|
||||
matchTime: 10000,
|
||||
rules:
|
||||
'[text$="抽奖送大礼"] < WebView - [id="cisdom.com.bigteaapp:id/close"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13228579',
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: [
|
||||
{
|
||||
matches:
|
||||
'[text$="抽奖送大礼"] < WebView - [id="cisdom.com.bigteaapp:id/close"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13228579',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -30,11 +30,9 @@ export default defineGkdApp({
|
||||
{
|
||||
key: 2,
|
||||
name: '快手广告-2',
|
||||
activityIds: [],
|
||||
matches: [
|
||||
'ViewGroup[childCount=2] > ImageView + [text="广告"]',
|
||||
'ViewGroup[childCount=1] > @ViewGroup[childCount=1] > ImageView[childCount=0]',
|
||||
],
|
||||
fastQuery: true,
|
||||
matches:
|
||||
'ImageView[childCount=0][text=null] < @ViewGroup[childCount=1][clickable=true][visibleToUser=true] < ViewGroup +n ViewGroup[childCount=2] > [text="广告"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13625511',
|
||||
},
|
||||
],
|
||||
@@ -58,14 +56,16 @@ export default defineGkdApp({
|
||||
{
|
||||
key: 1,
|
||||
name: '快手广告',
|
||||
fastQuery: true,
|
||||
matches:
|
||||
'[id="client.android.yixiaotong:id/ksad_container"] >n @TextView + View > [text="广告"]',
|
||||
'@TextView[clickable=true][childCount=0][visibleToUser=true] + View > [visibleToUser=true][text="广告"] <<n [id="client.android.yixiaotong:id/ksad_container"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13450887',
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
fastQuery: true,
|
||||
matches:
|
||||
'FrameLayout[childCount=3] > FrameLayout > ImageView[visibleToUser=true]',
|
||||
'@ImageView[childCount=0][visibleToUser=true] < FrameLayout[childCount=1] - LinearLayout > [text="领取优惠"]',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/57941037/ad8a1bbf-61b5-4a7e-8e16-5e0092f04b8c',
|
||||
snapshotUrls: 'https://i.gkd.li/i/14469848',
|
||||
@@ -88,18 +88,5 @@ export default defineGkdApp({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
name: '局部广告-底部卡片广告',
|
||||
fastQuery: true,
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'activity',
|
||||
activityIds:
|
||||
'client.android.yixiaotong.v3.ui.appcontrol.bath.BathDetailActivity',
|
||||
rules:
|
||||
'@TextView[clickable=true][text=""] + View [visibleToUser=true][text="广告"] <<n [id="client.android.yixiaotong:id/ksad_container"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13448963',
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -8,9 +8,16 @@ export default defineGkdApp({
|
||||
key: 3,
|
||||
name: '局部广告-首页活动悬浮广告',
|
||||
fastQuery: true,
|
||||
activityIds: 'cmb.pb.app.mainframe.container.PBMainActivity',
|
||||
rules: '[vid="float_window"] > [vid="ivCancle"][clickable=true]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/14208669',
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: [
|
||||
{
|
||||
activityIds: 'cmb.pb.app.mainframe.container.PBMainActivity',
|
||||
matches: '[vid="float_window"] > [vid="ivCancle"][clickable=true]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/14208669',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 10,
|
||||
@@ -25,8 +32,9 @@ export default defineGkdApp({
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
fastQuery: true,
|
||||
activityIds: 'com.pb.marketing.PopupWindowActivity',
|
||||
matches: '[desc^="活动图片"] + [desc="关闭"]',
|
||||
matches: '[desc^="活动图片"] + [vid="ivCancle"][desc="关闭"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/14208693',
|
||||
},
|
||||
],
|
||||
@@ -37,12 +45,16 @@ export default defineGkdApp({
|
||||
fastQuery: true,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: '@[desc="关闭"] - * > [text*="开启"][text*="定位"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/12706029',
|
||||
'https://i.gkd.li/i/13248893',
|
||||
'https://i.gkd.li/i/13897345',
|
||||
'https://i.gkd.li/i/14208717',
|
||||
rules: [
|
||||
{
|
||||
matches: '@[desc="关闭"] - * > [text*="开启"][text*="定位"]',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/12706029',
|
||||
'https://i.gkd.li/i/13248893',
|
||||
'https://i.gkd.li/i/13897345',
|
||||
'https://i.gkd.li/i/14208717',
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -14,8 +14,8 @@ export default defineGkdApp({
|
||||
rules: [
|
||||
{
|
||||
action: 'back',
|
||||
matches:
|
||||
'[id="cmccwm.mobilemusic.libraries_feature:id/tv_title"][text="发现新版本"]',
|
||||
activityIds: '.ui.base.MainActivity',
|
||||
matches: '[text="发现新版本"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13448898',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -7,15 +7,15 @@ export default defineGkdApp({
|
||||
{
|
||||
key: 1,
|
||||
name: '局部广告-加速页分享抽奖浮窗',
|
||||
activityIds: 'cn.ccspeed.app.MainActivity',
|
||||
fastQuery: true,
|
||||
matchTime: 10000,
|
||||
resetMatch: 'activity',
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: [
|
||||
{
|
||||
activityIds: 'cn.ccspeed.app.MainActivity',
|
||||
matches:
|
||||
'FrameLayout[id="cn.ccspeed:id/float_layout"] > ImageView - ImageView',
|
||||
'@ImageView[visibleToUser=true] + [id="cn.ccspeed:id/iv_float"]',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13539299',
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user