From f25db9fb4377f479e7a69b7b16c906b1904c4740 Mon Sep 17 00:00:00 2001 From: lisonge Date: Wed, 27 Sep 2023 19:49:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BE=AE=E5=8D=9A=E6=9E=81=E9=80=9F?= =?UTF-8?q?=E7=89=88):=20=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A,=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=B5=81=E5=B9=BF=E5=91=8A=20(#413)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.sina.weibolite.ts | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/apps/com.sina.weibolite.ts diff --git a/src/apps/com.sina.weibolite.ts b/src/apps/com.sina.weibolite.ts new file mode 100644 index 00000000..d21ff64c --- /dev/null +++ b/src/apps/com.sina.weibolite.ts @@ -0,0 +1,36 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.sina.weibolite', + name: '微博极速版', + groups: [ + { + key: 0, + name: '开屏广告', + activityIds: 'com.weico.international.ui.ad.AdActivity', + rules: 'LinearLayout > TextView[text="跳过"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12738090', + }, + { + key: 1, + name: '信息流广告', + desc: '点击广告卡片右上角x图标,点击[不感兴趣]', + activityIds: 'com.weico.international.activity.MainFragmentActivity', + rules: [ + { + key: 0, + name: '点击广告卡片右上角x图标', + matches: '[id="com.sina.weibolite:id/item_timeline_ad_action"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12738110', + }, + { + preKeys: 0, + name: '点击[不感兴趣]', + matches: + '@View[clickable=true][childCount=1] > TextView[text="不感兴趣"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12738132', + }, + ], + }, + ], +});