Skip to content

Commit

Permalink
perf: 更新规则
Browse files Browse the repository at this point in the history
  • Loading branch information
MengNianxiaoyao committed Mar 31, 2024
1 parent 4baad48 commit a437015
Show file tree
Hide file tree
Showing 52 changed files with 730 additions and 218 deletions.
4 changes: 2 additions & 2 deletions src/apps/cn.soulapp.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineAppConfig({
resetMatch: 'app',
rules: [
{
action: 'clickCenter', // 在极少数情况下, 即使节点是 clickable 的, APP 也不会响应节点点击事件, 此时需要手动设置 `clickCenter`
action: 'clickCenter', // 在极少数情况下, 即使节点是 clickable 的, APP 也不会响应节点点击事件, 此时需要手动设置 clickCenter
matches: '[id="cn.soulapp.android:id/c_ad_skip_view_btn"]',
snapshotUrls: [
'https://i.gkd.li/i/12833280',
Expand All @@ -39,7 +39,7 @@ export default defineAppConfig({
key: 2,
name: '局部广告-广场页卡片广告',
quickFind: true,
activityIds: ['cn.soulapp.android.component.startup.main.MainActivity'],
activityIds: 'cn.soulapp.android.component.startup.main.MainActivity',
rules: [
{
matches:
Expand Down
23 changes: 23 additions & 0 deletions src/apps/cn.ylkj.xingying.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineAppConfig } from '../types';

export default defineAppConfig({
id: 'cn.ylkj.xingying',
name: '星影视频',
groups: [
{
key: 1,
name: '全屏广告-广告弹窗',
desc: '点击关闭',
rules: [
{
activityIds: 'cn.ylkj.xingying.MainActivity',
matches:
'[id="android:id/content"] >4 FrameLayout[childCount=1] > ImageView',
exampleUrls:
'https://m.gkd.li/57941037/66b19fbd-b82d-4f10-b82d-0fc74c146b1c',
snapshotUrls: 'https://i.gkd.li/i/14783306',
},
],
},
],
});
28 changes: 28 additions & 0 deletions src/apps/com.autonavi.minimap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,33 @@ export default defineAppConfig({
},
],
},
{
key: 14,
name: '全屏广告-广告弹窗',
desc: '点击关闭',
rules: [
{
key: 0,
name: '[欢迎]弹窗',
quickFind: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches:
'ViewGroup[childCount=6] >4 ViewGroup[childCount=5] > @ImageView + View[text!=null] <<n [vid="fragment_container"]',
exampleUrls:
'https://m.gkd.li/57941037/660ef360-eee8-4fb8-9764-7a1822ccb6e9',
snapshotUrls: 'https://i.gkd.li/i/14800704',
},
{
key: 1,
name: '签到弹窗',
quickFind: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches: '[vid="main_map_msg_dialog_close"]',
exampleUrls:
'https://m.gkd.li/57941037/e059109b-f4bb-4ed6-81a8-6010b51ebfd5',
snapshotUrls: 'https://i.gkd.li/i/14809993',
},
],
},
],
});
2 changes: 1 addition & 1 deletion src/apps/com.bjsk.intelligent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineAppConfig({
activityIds:
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
rules: [
'Image < @View +4 TextView[text=`反馈`] + View TextView[text=`广告`]',
'Image < @View +4 TextView[text="反馈"] + View TextView[text="广告"]',
],
},
],
Expand Down
19 changes: 13 additions & 6 deletions src/apps/com.cainiao.wireless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,23 @@ export default defineAppConfig({
'View[childCount=4] > Image + View + Image + View[text.length>0][clickable=true]',
snapshotUrls: 'https://i.gkd.li/i/13042279',
},
{
key: 2,
quickFind: true,
activityIds:
'com.cainiao.wireless.homepage.view.activity.HomePageActivity',
matches:
'View[clickable=true] > @[text="关闭"] + [text="活动"] <<n [vid="browser_fragment_layout"]',
snapshotUrls: 'https://i.gkd.li/i/14033859',
},
],
},
{
key: 2,
name: '局部广告-包裹页面-地图底部横条广告',
activityIds: [
'com.taobao.cainiao.logistic.ui.view.LogisticDetailActivity',
],
activityIds: 'com.taobao.cainiao.logistic.ui.view.LogisticDetailActivity',
rules: 'View[desc="立即查看"] +2 ImageView[id=null]',
snapshotUrls: ['https://i.gkd.li/i/12914450'],
snapshotUrls: 'https://i.gkd.li/i/12914450',
},
{
key: 4,
Expand All @@ -47,7 +54,7 @@ export default defineAppConfig({
resetMatch: 'app',
quickFind: true,
rules: '[text="确认"] - [text="取消"]',
snapshotUrls: ['https://i.gkd.li/i/13042207'],
snapshotUrls: 'https://i.gkd.li/i/13042207',
},
{
key: 5,
Expand All @@ -58,7 +65,7 @@ export default defineAppConfig({
resetMatch: 'app',
quickFind: true,
rules: '[id="com.cainiao.wireless:id/gg_dialog_base_close"]',
snapshotUrls: ['https://i.gkd.li/i/13068573'],
snapshotUrls: 'https://i.gkd.li/i/13068573',
},
{
key: 6,
Expand Down
2 changes: 1 addition & 1 deletion src/apps/com.coolapk.market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default defineAppConfig({
resetMatch: 'app',
quickFind: true,
snapshotUrls: 'https://i.gkd.li/i/12503762',
rules: '[text=`立即更新`] - [text=`取消`]',
rules: '[text="立即更新"] - [text="取消"]',
},
{
key: 3,
Expand Down
20 changes: 19 additions & 1 deletion src/apps/com.csair.mbp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,25 @@ export default defineAppConfig({
quickFind: true,
activityIds: 'com.csair.mbp.CSMBPActivity',
rules: '[id="com.csair.mbp:id/close_btn"]',
snapshotUrls: ['https://i.gkd.li/i/13197497'],
snapshotUrls: 'https://i.gkd.li/i/13197497',
},
{
key: 4,
name: '功能类-长辈版弹窗',
desc: '点击[暂不开启]',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
activityIds: 'com.csair.mbp.CSMBPActivity',
matches: '[text="开启长辈版"] -2 [text="暂不开启"]',
exampleUrls:
'https://m.gkd.li/57941037/8744f8c6-7f9a-4f7b-a5c7-68de1701cd7b',
snapshotUrls: 'https://i.gkd.li/i/14810700',
},
],
},
],
});
22 changes: 22 additions & 0 deletions src/apps/com.dongao.kaoqian.phone.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineAppConfig } from '../types';

export default defineAppConfig({
id: 'com.dongao.kaoqian.phone',
name: '会计云课堂',
groups: [
{
key: 0,
name: '开屏广告',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
quickFind: true,
matches: '[vid="tv_welcome_guide"]',
snapshotUrls: 'https://i.gkd.li/i/14809185',
},
],
},
],
});
12 changes: 2 additions & 10 deletions src/apps/com.dragon.read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ export default defineAppConfig({
{
key: 4,
matches:
'HorizontalAndVerticalScrollView > FrameLayout[childCount=13] >(7,8) @FrameLayout[index=2][clickable=true] > ImageView',
'HorizontalAndVerticalScrollView > FrameLayout[childCount>=13] >(7,8,9) @FrameLayout[index=2][clickable=true] > ImageView',
exampleUrls:
'https://m.gkd.li/57941037/0129e5a7-ead1-4b92-a008-708632e5a927',
snapshotUrls: [
'https://i.gkd.li/i/14548657',
'https://i.gkd.li/i/14622531',
'https://i.gkd.li/i/14810480',
],
},
],
Expand Down Expand Up @@ -223,14 +224,5 @@ export default defineAppConfig({
},
],
},
{
key: 15,
name: '局部广告-书城-底部继续阅读浮窗',
desc: '点击"继续阅读"旁边的"x"',
resetMatch: 'app',
activityIds: 'com.dragon.read.pages.main.MainFragmentActivity',
rules: '[vid="container"] > ImageView',
snapshotUrls: 'https://i.gkd.li/i/14031943',
},
],
});
2 changes: 1 addition & 1 deletion src/apps/com.duokan.phone.remotecontroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineAppConfig({
activityIds:
'com.xiaomi.mitv.phone.remotecontroller.HoriWidgetMainActivityV2',
rules:
'ImageView[id=`com.duokan.phone.remotecontroller:id/image_close_banner`]',
'ImageView[id="com.duokan.phone.remotecontroller:id/image_close_banner"]',
},
{
key: 4,
Expand Down
41 changes: 41 additions & 0 deletions src/apps/com.eg.android.AlipayGphone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,46 @@ export default defineAppConfig({
},
],
},
{
key: 18,
name: '全屏广告-小程序-红包弹窗',
desc: '点击关闭',
rules: [
{
action: 'clickCenter',
activityIds:
'com.alipay.mobile.nebulax.xriver.activity.XRiverActivity$XRiverLite1',
matches: 'View[childCount=2] > View > Image < * + [text="X"]',
exampleUrls:
'https://m.gkd.li/57941037/19ba92ce-0c57-4559-ab53-89b912fe8506',
snapshotUrls: 'https://i.gkd.li/i/14783332',
},
],
},
{
key: 19,
name: '分段广告-服务消息页面-卡片广告',
desc: '点击[关闭]-点击[不感兴趣]',
quickFind: true,
activityIds:
'com.alipay.android.phone.messageboxapp.ui.MsgBoxTabActivity',
rules: [
{
key: 0,
matches: '@[clickable=true] > [text="广告"]',
exampleUrls:
'https://m.gkd.li/57941037/c3e08729-6d97-4a87-bfc3-1e38dd95c384',
snapshotUrls: 'https://i.gkd.li/i/14787644',
},
{
preKeys: [0],
key: 1,
matches: '@[clickable=true] >2 [text="不感兴趣"]',
exampleUrls:
'https://m.gkd.li/57941037/64c8c27d-23de-43b1-a87b-e2107b644eb1',
snapshotUrls: 'https://i.gkd.li/i/14787585',
},
],
},
],
});
18 changes: 18 additions & 0 deletions src/apps/com.gamersky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,23 @@ export default defineAppConfig({
},
],
},
{
key: 2,
name: '功能类-签到成功弹窗',
desc: '点击[确定]',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
quickFind: true,
activityIds: 'com.gamersky.main.activity.LibMainActivity',
matches: '[text="签到成功!"] < * > [text="确定"]',
exampleUrls:
'https://m.gkd.li/57941037/696e417a-3100-43a2-a401-f4f80dfa9f47',
snapshotUrls: 'https://i.gkd.li/i/14761502',
},
],
},
],
});
2 changes: 1 addition & 1 deletion src/apps/com.google.android.apps.photos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineAppConfig({
rules: [
{
matches:
'[id=`com.google.android.apps.photos:id/negative_button`][text=`以后再说`]',
'[id="com.google.android.apps.photos:id/negative_button"][text="以后再说"]',
snapshotUrls: 'https://i.gkd.li/i/13218940',
},
],
Expand Down
23 changes: 15 additions & 8 deletions src/apps/com.google.android.youtube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export default defineAppConfig({
{
key: 0,
name: '全屏广告-视频播放-跳过广告',
quickFind: true,
activityIds: [
'com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity',
'com.google.android.apps.youtube.app.watchwhile.MainActivity',
'com.google.android.youtube',
],
quickFind: true,
rules: [
{
key: 0,
Expand All @@ -34,14 +34,21 @@ export default defineAppConfig({
{
key: 1,
name: '全屏广告-视频播放-赞助商广告',
activityIds:
quickFind: true,
activityIds: [
'com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity',
rules:
'ImageView[desc="更多选项"||desc^="More"] + @ImageView[desc="关闭广告面板"||desc^="Close"]',
snapshotUrls: [
'https://i.gkd.li/i/12877346',
'https://i.gkd.li/i/13797491',
'https://i.gkd.li/i/13705106',
'com.google.android.apps.youtube.app.watchwhile.MainActivity',
],
rules: [
{
matches:
'@[desc="关闭广告面板" || desc="Close ad panel"] <<n [vid="panel_header"]',
snapshotUrls: [
'https://i.gkd.li/i/13797491',
'https://i.gkd.li/i/13705106',
'https://i.gkd.li/i/14784199',
],
},
],
},
{
Expand Down
16 changes: 16 additions & 0 deletions src/apps/com.handsgo.jiakao.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ export default defineAppConfig({
name: '驾考宝典',
deprecatedKeys: [0],
groups: [
{
key: -1,
name: '开屏广告',
resetMatch: 'app',
matchTime: 10000,
actionMaximum: 1,
rules: [
{
key: 0,
quickFind: true,
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
snapshotUrls: 'https://i.gkd.li/i/14812686',
},
],
},
{
key: 1,
name: '局部广告-悬浮广告',
Expand Down
Loading

0 comments on commit a437015

Please sign in to comment.