From 4bf6203e11cc74c1c75dd4c5b4470f8fd9c5d561 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sat, 23 Sep 2023 23:55:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=87=A4=E5=87=B0=E6=96=B0=E9=97=BB):=20?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A,=20=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=B5=81=E5=B9=BF=E5=91=8A,=20=E8=AF=B7=E6=B1=82=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E6=9D=83=E9=99=90=E5=BC=B9=E7=AA=97=EF=BC=88=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=85=B3=E9=97=AD=EF=BC=89(#306)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.ifeng.news2.ts | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/apps/com.ifeng.news2.ts diff --git a/src/apps/com.ifeng.news2.ts b/src/apps/com.ifeng.news2.ts new file mode 100644 index 00000000..ba7ba9cf --- /dev/null +++ b/src/apps/com.ifeng.news2.ts @@ -0,0 +1,69 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.ifeng.news2', + name: '凤凰新闻', + groups: [ + { + key: 0, + name: '开屏广告', + activityIds: 'com.ifeng.news2.activity.IfengTabMainActivity', + rules: '[id="com.ifeng.news2:id/skip_layout"] > [text="跳过"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705529', + }, + { + key: 1, + name: '信息流广告', + activityIds: 'com.ifeng.news2.activity.IfengTabMainActivity', + rules: [ + { + key: 1, + matches: + '[id="com.ifeng.news2:id/adv_label"] + [id="com.ifeng.news2:id/normal_item_delete_wrap"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705500', + }, + { + key: 2, + matches: + '@[id="com.ifeng.news2:id/img_feedback_left_of_image"] - LinearLayout >(2) [id="com.ifeng.news2:id/adv_label"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705508', + }, + { + key: 3, + matches: + '[id="com.ifeng.news2:id/adv_icon"] + LinearLayout[id="com.ifeng.news2:id/normal_item_delete_wrap"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705511', + }, + { + key: 4, + matches: + '[id="com.ifeng.news2:id/adv_icon"] + TextView + [id="com.ifeng.news2:id/normal_item_delete_wrap"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705518', + }, + { + key: 5, + matches: + '[id="com.ifeng.news2:id/adv_label"] + [id="com.ifeng.news2:id/iv_item_del"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705520', + }, + { + preKeys: [1, 2, 3, 4, 5], + key: 9, + matches: + '@[id="com.ifeng.news2:id/dialog_dislike_feedback_normal_item_linearlayout"] > [text="不感兴趣"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705505', + }, + ], + }, + { + enable: true, + key: 10, + name: '请求位置权限弹窗', + desc: '自动点击取消', + activityIds: 'com.ifeng.news2.activity.IfengTabMainActivity', + rules: + '[text*="请求您的位置"] + [id="com.ifeng.news2:id/permission_cancel"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705531', + }, + ], +});