Skip to content

Commit

Permalink
feat: 规则维护更新 (#182)
Browse files Browse the repository at this point in the history
* fix(QQ): 消息页面顶部广告, 自动授权

* feat(高德地图): 首页广告卡片

* feat(大学搜题酱): 信息流广告

* feat(阿里云盘): 自动签到

* feat(QQ音乐): 移除全局规则覆盖的规则

* feat(淘宝): 弹窗广告

* feat(菜鸟): 包裹页面广告

* feat(微信): 小程序部分广告

* chore(actions): check_format_lint

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
aoguai and github-actions[bot] committed Jun 23, 2024
1 parent dd560b9 commit 7ef2dda
Show file tree
Hide file tree
Showing 8 changed files with 127 additions and 135 deletions.
2 changes: 2 additions & 0 deletions src/apps/com.alicloud.databox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default defineGkdApp({
activityIds: [
'com.alicloud.databox.MainActivity',
'com.alicloud.databox.navigation.NavigationFragmentContainerActivity',
'com.alicloud.databox.account.login.LoginActivity',
],
rules: [
{
Expand All @@ -24,6 +25,7 @@ export default defineGkdApp({
snapshotUrls: [
'https://i.gkd.li/import/12929318',
'https://i.gkd.li/i/15573070',
'https://i.gkd.li/i/15942837',
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/apps/com.autonavi.minimap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineGkdApp({
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="关闭"]',
'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',
Expand Down
20 changes: 10 additions & 10 deletions src/apps/com.cainiao.wireless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ export default defineGkdApp({
},
{
key: 2,
name: '局部广告-包裹页面-地图底部横条广告',
name: '局部广告-包裹页面广告',
activityIds: [
'com.taobao.cainiao.logistic.ui.view.LogisticDetailActivity',
],
rules: 'View[desc="立即查看"] +2 ImageView[id=null]',
snapshotUrls: ['https://i.gkd.li/import/14162159'],
},
{
key: 3,
name: '局部广告-包裹页面-物流信息底部横条广告',
desc: '点击右上角关闭',
quickFind: true,
activityIds: 'com.taobao.cainiao.logistic.ui.view.LogisticDetailActivity',
rules: [
{
key: 0,
name: '地图底部横条广告',
matches: 'View[desc="立即查看"] +2 ImageView[id=null]',
snapshotUrls: 'https://i.gkd.li/import/14162159',
},
{
key: 1,
name: '物流信息底部横条广告',
quickFind: true,
matches: '[vid="iv_banner_close"]',
snapshotUrls: 'https://i.gkd.li/i/15879126',
},
Expand Down
156 changes: 76 additions & 80 deletions src/apps/com.taobao.taobao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@ export default defineGkdApp({
{
key: 1,
name: '全屏广告-弹窗广告',
desc: '各种全屏广告弹窗',
enable: false,
quickFind: true,
activityIds: [
'com.taobao.tao.welcome.Welcome',
'com.taobao.tao.TBMainActivity',
'com.taobao.android.tbabilitykit.pop.StdPopContainerActivity',
'com.taobao.android.detail.wrapper.activity.DetailActivity',
'com.alibaba.triver.container.TriverMainActivity',
],
rules: [
{
key: 1,
name: '88VIP开通优惠弹窗',
activityIds: [
'com.taobao.tao.welcome.Welcome',
'com.taobao.tao.TBMainActivity',
'com.taobao.android.tbabilitykit.pop.StdPopContainerActivity',
'com.taobao.android.detail.wrapper.activity.DetailActivity',
'com.alibaba.triver.container.TriverMainActivity',
],
quickFind: true,
matches: '@[desc="关闭按钮"] - [vid="poplayer_native_state_id"]',
snapshotUrls: [
'https://i.gkd.li/import/13198052', //com.taobao.tao.welcome.Welcome
Expand All @@ -44,9 +45,76 @@ export default defineGkdApp({
{
key: 2,
name: '抢天降补贴弹窗',
activityIds: [
'com.taobao.tao.welcome.Welcome',
'com.taobao.tao.TBMainActivity',
'com.taobao.android.tbabilitykit.pop.StdPopContainerActivity',
'com.taobao.android.detail.wrapper.activity.DetailActivity',
'com.alibaba.triver.container.TriverMainActivity',
],
quickFind: true,
matches: '@[desc="关闭按钮"] - [vid="poplayer_native_state_id"]',
snapshotUrls: 'https://i.gkd.li/import/14060521',
},
{
key: 3,
name: '"「0元下单」权益"弹窗',
activityIds: 'com.alipay.android.msp.ui.views.MspContainerActivity',
quickFind: true,
matches:
'[text="关闭"] < @FrameLayout[clickable=true] <3 FrameLayout[childCount=3] < * + FrameLayout[childCount=3] [text*="0元下单"]',
snapshotUrls: 'https://i.gkd.li/import/14155537',
},
{
key: 4,
name: '视频页面-弹窗-类型1',
activityIds: [
'com.taobao.tao.welcome.Welcome',
'com.taobao.tao.TBMainActivity',
],
matches:
'View[id=null] > [text="立即参加"] + TextView[id=null][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/12642813',
},
{
key: 5,
name: '视频页面-签到弹窗',
activityIds: [
'com.taobao.tao.welcome.Welcome',
'com.taobao.tao.TBMainActivity',
],
matches:
'@Image[text.length>40] < View - View >n TextView[text*="立即"]',
snapshotUrls: [
'https://i.gkd.li/import/12642798',
'https://i.gkd.li/import/14163734',
],
},
{
key: 6,
name: '将小组件添加到手机桌面',
activityIds: 'com.alibaba.triver.container.TriverMainActivity',
matches:
'View[childCount=2] >3 View[text="立即添加"] + View[text="取消"]',
snapshotUrls: [
'https://i.gkd.li/import/13598578',
'https://i.gkd.li/import/13853510', //误触快照
],
},
{
key: 7,
name: '各级页面-添加到首页弹窗',
quickFind: true,
activityIds: [
'com.taobao.themis.container.app.TMSActivity',
'com.alibaba.triver.container.TriverMainActivity',
],
matches: 'TextView[text="去首页"] + TextView[text="退出"]',
snapshotUrls: [
'https://i.gkd.li/import/13197553',
'https://i.gkd.li/import/13197546',
],
},
],
},
{
Expand Down Expand Up @@ -99,49 +167,6 @@ export default defineGkdApp({
'https://i.gkd.li/i/15104645',
],
},
{
key: 9,
name: '局部广告-各级页面-添加到首页弹窗',
desc: '自动点击退出',
quickFind: true,
activityIds: [
'com.taobao.themis.container.app.TMSActivity',
'com.alibaba.triver.container.TriverMainActivity',
],
rules: 'TextView[text="去首页"] + TextView[text="退出"]',
snapshotUrls: [
'https://i.gkd.li/import/13197553',
'https://i.gkd.li/import/13197546',
],
},
{
key: 10,
name: '全屏广告-视频页面-弹窗',
enable: false,
activityIds: [
'com.taobao.tao.welcome.Welcome',
'com.taobao.tao.TBMainActivity',
],
rules: [
{
key: 0,
name: '类型1',
matches:
'View[id=null] > [text="立即参加"] + TextView[id=null][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/12642813',
},
{
key: 1,
name: '签到弹窗',
matches:
'@Image[text.length>40] < View - View >n TextView[text*="立即"]',
snapshotUrls: [
'https://i.gkd.li/import/12642798',
'https://i.gkd.li/import/14163734',
],
},
],
},
{
key: 12,
name: '更新提示',
Expand Down Expand Up @@ -191,18 +216,6 @@ export default defineGkdApp({
},
],
},
{
key: 14,
name: '全屏广告-将小组件添加到手机桌面',
desc: '点击取消',
enable: false,
activityIds: 'com.alibaba.triver.container.TriverMainActivity',
rules: 'View[childCount=2] >3 View[text="立即添加"] + View[text="取消"]',
snapshotUrls: [
'https://i.gkd.li/import/13598578',
'https://i.gkd.li/import/13853510', //误触快照
],
},
{
key: 16,
name: '全屏广告-花呗升级报送征信',
Expand Down Expand Up @@ -235,22 +248,5 @@ export default defineGkdApp({
},
],
},
{
key: 18,
name: '全屏广告-"「0元下单」权益"弹窗',
desc: '点击关闭',
enable: false,
rules: [
{
quickFind: true,
activityIds: 'com.alipay.android.msp.ui.views.MspContainerActivity',
matches:
'[text="关闭"] < @FrameLayout[clickable=true] <3 FrameLayout[childCount=3] < * + FrameLayout[childCount=3] [text*="0元下单"]',
exampleUrls:
'https://m.gkd.li/57941037/a35c954d-5162-463c-aee3-b72b9c2d6625',
snapshotUrls: 'https://i.gkd.li/import/14155537',
},
],
},
],
});
51 changes: 21 additions & 30 deletions src/apps/com.tencent.mm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,17 +310,19 @@ export default defineGkdApp({
},
{
key: 10,
name: '全屏广告-微信小程序-开屏广告',
name: '全屏广告-小程序部分广告',
enable: false,
quickFind: true,
matchTime: 10000,
activityIds: [
'com.tencent.mm.plugin.appbrand.ui.AppBrandUI',
'com.tencent.mm.plugin.appbrand.launching.AppBrandLaunchProxyUI',
],
rules: [
{
key: 0,
name: '开屏广告',
actionDelay: 800, // 过早点击首次大概率跳不过
quickFind: true,
matches: [
'[text="广告"][visibleToUser=true]',
'[text="跳过"][visibleToUser=true]',
Expand All @@ -336,28 +338,35 @@ export default defineGkdApp({
'https://i.gkd.li/i/15108441',
],
},
],
},
{
key: 13,
name: '全屏广告-提瓦特助手小程序-弹窗广告',
enable: false,
activityIds: 'com.tencent.mm.plugin.appbrand.ui.AppBrandUI',
rules: [
{
key: 0,
key: 1,
name: '提瓦特助手小程序-弹窗广告1',
matches: [
'ImageView[childCount=0][visibleToUser=true] < FrameLayout < @FrameLayout[visibleToUser=true] <2 * - * >5 [text="查看详情"]',
],
snapshotUrls: 'https://i.gkd.li/import/12926021',
},
{
key: 1,
key: 2,
name: '提瓦特助手小程序-弹窗广告2',
quickFind: true,
matches:
'ImageView[childCount=0][visibleToUser=true] < FrameLayout < @FrameLayout[visibleToUser=true] <2 * - * >4 [text="广告"]',
snapshotUrls: 'https://i.gkd.li/import/13459614',
},
{
key: 3,
name: '京东购物小程序-低价包邮广告',
actionDelay: 500,
actionMaximum: 1,
resetMatch: 'activity',
matches:
'View[childCount=8] > View[index=6] > View[childCount=4] > Image[visibleToUser=true]',
snapshotUrls: [
'https://i.gkd.li/import/13298294',
'https://i.gkd.li/import/14156176', // 误触快照
],
},
],
},
{
Expand Down Expand Up @@ -401,24 +410,6 @@ export default defineGkdApp({
},
],
},
{
key: 16,
name: '全屏广告-小程序-京东购物',
enable: false,
desc: '低价包邮广告',
actionDelay: 500,
actionMaximum: 1,
resetMatch: 'activity',
activityIds: 'com.tencent.mm.plugin.appbrand.ui.AppBrandUI',
rules: {
matches:
'View[childCount=8] > View[index=6] > View[childCount=4] > Image[visibleToUser=true]',
snapshotUrls: [
'https://i.gkd.li/import/13298294',
'https://i.gkd.li/import/14156176', // 误触快照
],
},
},
{
key: 18,
name: '功能类-青少年模式自动点击验证密码',
Expand Down
Loading

0 comments on commit 7ef2dda

Please sign in to comment.