Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
feat(拷貝漫畫): 关闭赞助提示,其他规则优化 (#850)
Browse files Browse the repository at this point in the history
* Update com.copymanga.app.ts

更新内部弹窗广告和书架下广告

* chore(actions): check_format_lint

* feat(拷貝漫畫): 规则优化

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: 二刺螈 <[email protected]>
  • Loading branch information
3 people authored Oct 10, 2023
1 parent c5cf8a5 commit 3396b18
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions src/apps/com.copymanga.app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
matchLauncher: true,
activityIds: [
'com.copymanga.app.MainActivity',
'com.miui.home.launcher.Launcher',
'com.reaper.flutter.reaper_flutter_plugin.activity.ReaperSplashActivity',
'com.huawei.android.launcher.unihome.UniHomeLauncher',
],
rules: [
{
Expand All @@ -28,10 +27,8 @@ export default defineAppConfig({
{
key: 1,
name: '内部弹窗广告',
activityIds: [
'com.copymanga.app.MainActivity',
'com.miui.home.launcher.Launcher',
],
matchLauncher: true,
activityIds: ['com.copymanga.app.MainActivity'],
rules: [
{
activityIds: 'com.kwad.components.ad.interstitial',
Expand All @@ -55,16 +52,41 @@ export default defineAppConfig({
'https://gkd-kit.gitee.io/import/12661019',
],
},
{
matches:
'@ImageView < FrameLayout[childCount=1] +2 FrameLayout[childCount=2] >2 TextView[text$="看看"][text^="去"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12504501',
},
],
},
{
key: 2,
name: '加入书架按钮下面的广告',
activityIds: 'com.copymanga.app.MainActivity',
rules: {
matches: 'ImageView[id="com.copymanga.app:id/close"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12504525',
},
rules: [
{
name: '点击右上角x',
matches: 'ImageView[id="com.copymanga.app:id/close"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12504525',
},
{
name: '点击右下角x',
matches:
'FrameLayout[childCount=3] > LinearLayout[childCount=1] + FrameLayout[childCount=1] > ImageView[id=null]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12851671',
},
],
},
{
key: 3,
name: '关闭赞助提示',
activityIds: 'com.copymanga.app.MainActivity',
rules: [
{
matches: '@[desc="就这样吧"] + [desc^="赞助免广告"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12851627',
},
],
},
],
});

0 comments on commit 3396b18

Please sign in to comment.