From 7513075857e77257ad14fe523cf77a03e133c01a Mon Sep 17 00:00:00 2001 From: adproqwq <101449500+adproqwq@users.noreply.github.com> Date: Wed, 22 Nov 2023 22:17:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BB=BF=E6=B4=B2):=20=E5=BC=80=E5=B1=8F?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=E5=8F=8A=E9=A6=96=E9=A1=B5-=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E5=B9=BF=E5=91=8A=20(#2393)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(绿洲): 开屏广告及首页-推荐广告 * feat(绿洲): 开屏广告 --------- Co-authored-by: lisonge close #2389 --- src/apps/com.sina.oasis.ts | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/apps/com.sina.oasis.ts diff --git a/src/apps/com.sina.oasis.ts b/src/apps/com.sina.oasis.ts new file mode 100644 index 00000000..843329c2 --- /dev/null +++ b/src/apps/com.sina.oasis.ts @@ -0,0 +1,43 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.sina.oasis', + name: '绿洲', + groups: [ + { + key: 0, + name: '开屏广告', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + matches: '[text*="跳过"][text.length<=10]', + snapshotUrls: 'https://i.gkd.li/import/13434430', + }, + ], + }, + { + key: 1, + name: '首页-推荐广告', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + key: 0, + matches: + 'ImageView[id="com.sina.oasis:id/gdt_v2_banner_ad_close_btn"]', + snapshotUrls: 'https://i.gkd.li/import/13434468', + }, + { + preKeys: 0, + matches: '[text*="关闭此广告"][text.length<=10]', + snapshotUrls: 'https://i.gkd.li/import/13434471', + }, + ], + }, + ], +});