Skip to content

Commit

Permalink
feat: 规则维护更新 (#297)
Browse files Browse the repository at this point in the history
* fix(支付宝): 关闭花呗, 借呗,还款升级弹窗

* feat(PU口袋校园): 弹窗广告

* fix(高德地图):  地图横条广告
删除匹配复杂的首页广告卡片

* perf(微信): 补充快照

* feat(京东): 支付订单后点击[完成]
  • Loading branch information
aoguai authored Oct 16, 2024
1 parent f1945b3 commit 934e0a4
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 26 deletions.
40 changes: 15 additions & 25 deletions src/apps/com.autonavi.minimap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,24 @@ export default defineGkdApp({
},
{
key: 10,
name: '通知提示-首页地图页面上方消息提醒',
name: '通知提示-地图横条广告',
enable: false,
fastQuery: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
rules:
'RelativeLayout[desc="弹窗"] > [id="com.autonavi.minimap:id/msgbox_popup_clear"]',
snapshotUrls: 'https://i.gkd.li/import/12642830',
},
{
key: 11,
name: '局部广告-首页广告卡片',
desc: '关闭首页的所有可关闭的广告卡片',
activityIds: 'com.autonavi.map.activity.NewMapActivity',
rules:
'ScrollView >n ViewGroup[childCount<5][visibleToUser=true] > ViewGroup[childCount>0] + ViewGroup[index!=0][childCount=1][visibleToUser=true][clickable=true][desc=null||desc="关闭"] > ImageView[visibleToUser=true][desc=null||desc="关闭"]',
snapshotUrls: [
'https://i.gkd.li/import/12642842',
'https://i.gkd.li/import/12642845',
'https://i.gkd.li/i/14715295',
'https://i.gkd.li/i/14730914',
'https://i.gkd.li/i/14730915',
'https://i.gkd.li/i/14784970',
'https://i.gkd.li/import/12818770', // 限定 ImageView[visibleToUser=true],防止控件不可见时触发规则
'https://i.gkd.li/import/13764540', // 误触
'https://i.gkd.li/i/14912831', // 误触
'https://i.gkd.li/i/14912902', // 误触
'https://i.gkd.li/i/14912925', // 误触
'https://i.gkd.li/i/14965850', // 误触
rules: [
{
key: 0,
name: '弹窗1',
matches:
'RelativeLayout[desc="弹窗"] > [id="com.autonavi.minimap:id/msgbox_popup_clear"]',
snapshotUrls: 'https://i.gkd.li/import/12642830',
},
{
key: 1,
name: '弹窗2',
matches: '@ImageView[text=null] <n [vid="activity_icon_bar"]',
snapshotUrls: 'https://i.gkd.li/i/17391938',
},
],
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/apps/com.eg.android.AlipayGphone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineGkdApp({
{
key: 0,
matches:
'@[(name$=".Image")||((text^="暂不升级"||text^="放弃升级")||text="关闭")][visibleToUser=true][desc.length=null] <<n * <n * > * >n [((text^="同意")&&((text*="协议并"||text*="升级并")))&&(text$="确认交易"||text$="升级"||text$="开通"||text$="刷脸验证"||text$="付款")]',
'@[(name$=".Image")||((text^="暂不升级"||text^="放弃升级")||text="关闭")][visibleToUser=true][desc.length=null] <<n * <n * > * >n [((text^="同意")&&((text*="协议并"||text*="升级并")))&&(text$="确认交易"||text$="升级"||text$="开通"||text$="刷脸验证"||text$="付款")||text="确认"]',
snapshotUrls: [
'https://i.gkd.li/import/12737055', //com.alipay.mobile.nebulax.integration.mpaas.activity.NebulaActivity$Main
'https://i.gkd.li/import/13915022',
Expand All @@ -35,6 +35,7 @@ export default defineGkdApp({
'https://i.gkd.li/i/14650607',
'https://i.gkd.li/i/15050300',
'https://i.gkd.li/i/16106615',
'https://i.gkd.li/i/17391739',
],
},
],
Expand Down
13 changes: 13 additions & 0 deletions src/apps/com.jingdong.app.mall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,18 @@ export default defineGkdApp({
},
],
},
{
key: 13,
name: '功能类-支付订单后点击[完成]',
rules: [
{
fastQuery: true,
activityIds:
'.bundle.cashierfinish.view.CashierUserContentCompleteActivity',
matches: '[vid="lib_cashier_finish_back_page_text"]',
snapshotUrls: 'https://i.gkd.li/i/17358003',
},
],
},
],
});
1 change: 1 addition & 0 deletions src/apps/com.tencent.mm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ export default defineGkdApp({
'https://i.gkd.li/i/16798663',
'https://i.gkd.li/i/15198413', // 无id
'https://i.gkd.li/i/15198455', // 无id
'https://i.gkd.li/i/17276697', // text="广告 ",有空格
],
excludeSnapshotUrls: [
'https://i.gkd.li/import/12678937', // 防误触, 文章未浏览至页面底部,广告反馈按钮不可见,使用 [visibleToUser=true] 进行限定,防止打开文章就频繁触发规则
Expand Down
9 changes: 9 additions & 0 deletions src/apps/com.xyhui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ export default defineGkdApp({
'https://i.gkd.li/i/16319383',
],
},
{
key: 4,
name: '倍孜广告',
fastQuery: true,
activityIds:
'com.beizi.ad.internal.activity.BeiZiInterstitialActivity',
matches: '[vid="beizi_interstitial_ad_close_iv"]',
snapshotUrls: ['https://i.gkd.li/i/17391799'],
},
],
},
],
Expand Down

0 comments on commit 934e0a4

Please sign in to comment.