Skip to content

Commit

Permalink
feat: 规则维护更新 (#137)
Browse files Browse the repository at this point in the history
* fix(QQ): 开屏广告

* feat(大学搜题酱): 全屏广告

* feat(京东): 全屏广告

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

* chore(actions): check_format_lint

* feat(QQ): 好友动态广告卡片

* chore(actions): check_format_lint

* fix(京东): 广告弹窗

* fix(大学搜题酱): 全屏广告

* feat(阿里云盘): 局部广告-卡片广告

* feat(QQ音乐): 全屏广告

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
aoguai and github-actions[bot] committed May 25, 2024
1 parent f9131f0 commit 2cf20ae
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 23 deletions.
18 changes: 18 additions & 0 deletions src/apps/com.alicloud.databox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export default defineGkdApp({
{
key: 5,
name: '功能类-自动授权',
enable: false,
desc: '包括扫码登录',
actionMaximum: 1,
resetMatch: 'app',
Expand All @@ -129,6 +130,7 @@ export default defineGkdApp({
key: 6,
name: '全屏广告-[容量使用超限]提示',
desc: '点击关闭',
enable: false,
quickFind: true,
activityIds: 'com.alicloud.databox.MainActivity',
rules: [
Expand All @@ -138,5 +140,21 @@ export default defineGkdApp({
},
],
},
{
key: 7,
name: '局部广告-卡片广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
activityIds: 'com.alicloud.databox.transferpage.TransferListActivity',
rules: [
{
key: 0,
matches: '[vid="close"]',
snapshotUrls: 'https://i.gkd.li/i/15433289',
},
],
},
],
});
13 changes: 8 additions & 5 deletions src/apps/com.jingdong.app.mall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,16 @@ export default defineGkdApp({
rules: [
{
key: 0,
matches: 'FrameLayout > [desc="关闭"]',
snapshotUrls: 'https://i.gkd.li/import/13165721',
matches: '@FrameLayout[clickable=true] > [desc="关闭"]',
snapshotUrls: [
'https://i.gkd.li/i/13165721',
'https://i.gkd.li/i/15364514',
],
},
{
key: 1,
quickFind: true,
matches: '[vid="webview"] + [vid="close"][desc="关闭页面"]',
matches: '[vid="close"][desc="关闭页面"]',
snapshotUrls: [
'https://i.gkd.li/import/13218034',
'https://i.gkd.li/i/14927060',
Expand All @@ -126,13 +129,13 @@ export default defineGkdApp({
},
{
key: 3,
quickFind: true,
activityIds: 'com.jingdong.app.mall.MainFrameActivity',
matches: 'RelativeLayout > ImageView[desc="关闭页面"]',
matches: 'RelativeLayout > ImageView[desc*="关闭"]',
excludeMatches: 'ImageView[desc="关闭页面"] - [text="优惠券"]',
snapshotUrls: [
'https://i.gkd.li/import/13258996',
'https://i.gkd.li/import/13336847', // 增加excludeMatches: 'ImageView[desc="关闭页面"] - [text="优惠券"]', 避免在该快照误触
'https://i.gkd.li/i/15416926',
],
},
{
Expand Down
35 changes: 21 additions & 14 deletions src/apps/com.tencent.mobileqq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ export default defineGkdApp({
excludeActivityIds: [
'com.tencent.mobileqq.activity.ChatActivity', // 在聊天界面禁用
'com.tencent.mobileqq.search.activity.UniteSearchActivity', // 在搜索页面禁用
'com.tencent.mobileqq.activity.SplashActivity', // 在聊天界面禁用
],
rules: {
excludeMatches: '[vid="chat_item_content_layout"]', // 在聊天界面禁用
matches: 'TextView[text^="跳过"][text.length<=10][vid!="title"]',
},
snapshotUrls: [
'https://i.gkd.li/import/13062244',
'https://i.gkd.li/import/13093155',
'https://i.gkd.li/import/13207731',
'https://i.gkd.li/import/13217807', // 避免在聊天界面误触
'https://i.gkd.li/import/13856647', // 误触
'https://i.gkd.li/import/13868177', // 误触
'https://i.gkd.li/import/14341023', // 误触
rules: [
{
excludeMatches: '[vid="root"]', // 在聊天界面禁用,若排除EditText[vid="input"]则滑动消息时会造成误触
matches: 'TextView[text^="跳过"][text.length<=10][vid!="title"]',
snapshotUrls: [
'https://i.gkd.li/i/13093155',
'https://i.gkd.li/i/13207731',
'https://i.gkd.li/i/13217807', // 避免在聊天界面误触
'https://i.gkd.li/i/13856647', // 误触
'https://i.gkd.li/i/13868177', // 误触
'https://i.gkd.li/i/14341023', // 误触
'https://i.gkd.li/i/15334565', // 误触
],
},
],
},
{
Expand Down Expand Up @@ -103,8 +104,14 @@ export default defineGkdApp({
],
},
{
preKeys: 0,
key: 2,
matches:
'FrameLayout[clickable=false] >2 @ImageView[text=null][visibleToUser=true] - FrameLayout[clickable=false][childCount=0]',
snapshotUrls: ['https://i.gkd.li/i/15388608'],
},
{
preKeys: 0,
key: 10,
quickFind: true,
matches: '@[clickable=true] > * > ImageView + [text="隐藏此条动态"]',
snapshotUrls: [
Expand Down
13 changes: 12 additions & 1 deletion src/apps/com.tencent.qqmusic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export default defineGkdApp({
{
key: 0,
name: '弹窗广告',
forcedTime: 5000,
activityIds:
'com.tencent.qqmusic.activity.TranslucentWebViewActivity',
forcedTime: 5000,
matches: 'View[id="js_close_btn"][desc="关闭"]',
snapshotUrls: [
'https://i.gkd.li/i/13115121',
Expand All @@ -73,6 +73,17 @@ export default defineGkdApp({
'https://i.gkd.li/i/15285647',
],
},
{
key: 2,
name: '签到弹窗',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
activityIds: 'com.tencent.qqmusic.activity.AppStarterActivity',
matches:
'[id="android:id/content"] > FrameLayout > FrameLayout > ViewGroup[childCount=2] > ViewGroup > ViewGroup[clickable=true][childCount=0]',
snapshotUrls: 'https://i.gkd.li/i/15443191',
},
],
},
{
Expand Down
29 changes: 26 additions & 3 deletions src/apps/com.zmzx.college.search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default defineGkdApp({
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
'com.bytedance.sdk.openadsdk.core.component.reward.activity.TTFullScreenVideoActivity',
'com.zmzx.college.search.activity.common.DialogWebActivity',
'com.mercury.sdk.activity.InterstitialPortraitActivity',
],
rules: [
{
Expand All @@ -32,25 +33,47 @@ export default defineGkdApp({
},
{
key: 1,
name: '字节广告-2',
name: '广告-2',
quickFind: true,
matches: '[vid="iv_itr_close"]',
snapshotUrls: 'https://i.gkd.li/i/15360368',
},
{
key: 2,
name: '广告-3',
matches:
'ImageView - FrameLayout >3 FrameLayout[childCount=1] > ImageView',
snapshotUrls: 'https://i.gkd.li/i/15372979',
},
{
key: 3,
name: '字节广告',
matches:
'@Image[text.length=0] < View +(3,5) View > View > TextView[text$="广告"]',
snapshotUrls: [
'https://i.gkd.li/import/13523288',
'https://i.gkd.li/i/14965922',
'https://i.gkd.li/i/15316457',
'https://i.gkd.li/i/15442099',
],
},
{
key: 2,
preKeys: [0, 1],
key: 4,
preKeys: [0, 1, 2, 3],
name: '关闭开通会员免广告打扰弹窗',
matches: '@TextView[text.length=0] <n View > [text*="免广告"]',
snapshotUrls: ['https://i.gkd.li/i/15316467'],
},
],
},
{
key: 10,
name: '局部广告-信息流广告',
activityIds:
'com.zmzx.college.search.activity.main.activity.MainActivity',
rules: 'ImageView < FrameLayout > FrameLayout[childCount=1] > ImageView',
snapshotUrls: 'https://i.gkd.li/i/15373051',
},
{
key: 11,
name: '局部广告-首页底部广告',
Expand Down

0 comments on commit 2cf20ae

Please sign in to comment.