From aecbcddc6d006a2bc4103ea0f23518d899b020ac Mon Sep 17 00:00:00 2001 From: xhemj Date: Sun, 5 Nov 2023 23:24:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9C=89=E9=81=93=E7=BF=BB=E8=AF=91?= =?UTF-8?q?=E5=AE=98):=20=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C=E4=B8=8B?= =?UTF-8?q?=E6=96=B9=E5=B9=BF=E5=91=8A=20(#1869)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 添加 有道翻译官 结果下方广告规则 * feat(有道翻译官): 翻译界面-结果下方广告 --------- Co-authored-by: lisonge --- src/apps/com.youdao.translator.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/apps/com.youdao.translator.ts diff --git a/src/apps/com.youdao.translator.ts b/src/apps/com.youdao.translator.ts new file mode 100644 index 00000000..6d46544b --- /dev/null +++ b/src/apps/com.youdao.translator.ts @@ -0,0 +1,22 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.youdao.translator', + name: '有道翻译官', + groups: [ + { + key: 1, + name: '翻译界面-结果下方广告', + desc: '点击广告卡片右上角x', + quickFind: true, + activityIds: ['com.youdao.translator.activity.trans.TransResultActivity'], + rules: [ + { + matches: + '@ImageView[id=`com.youdao.translator:id/close_iv`] + [id="com.youdao.translator:id/native_ad_flag_tv"]', + snapshotUrls: 'https://i.gkd.li/import/13259910', + }, + ], + }, + ], +});