From 9e6d110ef42424276bb319b1b7a9faa0bc4cf5f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8B=89=E5=B7=B4=E6=8B=89=E5=98=BF?= <83610194+superHao2000@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:14:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(PicACG):=20=E5=B9=BF=E5=91=8A=20(#2346)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: PicACG * fix: 修正自动签到 * feat(PicACG): 开屏广告 --------- Co-authored-by: lisonge --- src/apps/com.picacomic.fregata.ts | 93 +++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 src/apps/com.picacomic.fregata.ts diff --git a/src/apps/com.picacomic.fregata.ts b/src/apps/com.picacomic.fregata.ts new file mode 100644 index 00000000..16c82bed --- /dev/null +++ b/src/apps/com.picacomic.fregata.ts @@ -0,0 +1,93 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.picacomic.fregata', + name: 'PicACG', + groups: [ + { + key: 1, + name: '开屏广告', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + matches: '[id="com.picacomic.fregata:id/imageButton_popup_close"]', + exampleUrls: [ + 'https://m.gkd.li/83610194/2a9a1179-3a50-4317-900a-42c8197517ed', + ], + snapshotUrls: ['https://i.gkd.li/import/13422624'], + }, + ], + }, + { + key: 2, + name: '公告', + desc: '点击主页面的公告和广告', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'activity', + activityIds: 'com.picacomic.fregata.activities.MainActivity', + rules: [ + { + matches: + '[id="com.picacomic.fregata:id/button_dialog_announcement_negative"][text="確定"]', + exampleUrls: [ + 'https://m.gkd.li/83610194/a5cbd7ce-79b4-49da-ba01-2b7db907d1f1', + ], + snapshotUrls: ['https://i.gkd.li/import/13422767'], + }, + ], + }, + { + key: 3, + name: '漫画页广告', + desc: '点击卡片广告', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'activity', + activityIds: 'com.picacomic.fregata.activities.MainActivity', + rules: [ + { + matches: '[id="com.picacomic.fregata:id/imageButton_banner_close"]', + exampleUrls: [ + 'https://m.gkd.li/83610194/92feb979-d75a-4ee5-a880-da2e4250d1e3', + ], + snapshotUrls: ['https://i.gkd.li/import/13423009'], + }, + ], + }, + { + enable: false, + key: 4, + name: '签到', + desc: '切换到个人页面时自动签到,并确定', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'activity', + activityIds: 'com.picacomic.fregata.activities.MainActivity', + rules: [ + { + matches: + '[id="com.picacomic.fregata:id/textView_profile_punch_in"][text="打嗶卡"]', + exampleUrls: [ + 'https://m.gkd.li/83610194/d53cc0cb-2a3e-4398-a415-3b8083edd328', + ], + snapshotUrls: ['https://i.gkd.li/import/13422844'], + }, + { + matches: + '[id="com.picacomic.fregata:id/button_dialog_custom_positive"][text="確定"]', + exampleUrls: [ + 'https://m.gkd.li/83610194/90048fce-fe89-4ac7-9ae6-fe3d7b99aeaf', + ], + snapshotUrls: ['https://i.gkd.li/import/13422874'], + }, + ], + }, + ], +});