feat(网易有道词典): 开屏广告(优化规则)、弹窗广告(优化规则)、更新弹窗 (#3049)

* feat 开屏广告(优化规则)

* feat 弹窗广告(优化规则)

* feat 更新弹窗
This commit is contained in:
Kun Jinkao 2023-12-11 20:17:45 +08:00 committed by GitHub
parent b419fa9820
commit 3135a065e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,12 +3,16 @@ import { defineAppConfig } from '../types';
export default defineAppConfig({ export default defineAppConfig({
id: 'com.youdao.dict', id: 'com.youdao.dict',
name: '网易有道词典', name: '网易有道词典',
deprecatedKeys: [3],
groups: [ groups: [
{ {
key: 0, key: 0,
name: '开屏广告', name: '开屏广告',
activityIds: 'com.youdao.dict.activity.DictSplashActivity', quickFind: true,
rules: '[id="com.youdao.dict:id/skin_text"]', matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: '[text$="跳过"][text.length<=10]',
snapshotUrls: 'https://i.gkd.li/import/12668545', snapshotUrls: 'https://i.gkd.li/import/12668545',
}, },
{ {
@ -30,26 +34,32 @@ export default defineAppConfig({
}, },
{ {
key: 2, key: 2,
name: '主页弹窗', name: '弹窗广告',
rules: [
{
key: 0,
name: '首页-弹窗广告',
activityIds: [ activityIds: [
'com.youdao.dict.activity.MainActivity', 'com.youdao.dict.activity.MainActivity',
'com.youdao.dict.activity.DictSplashActivity', 'com.youdao.dict.activity.DictSplashActivity',
], ],
rules: '@ImageView[id="com.youdao.dict:id/iv_close_bt"]',
quickFind: true, quickFind: true,
matches: '@ImageView[id="com.youdao.dict:id/iv_close_bt"]',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/12893419', 'https://i.gkd.li/import/12893419',
'https://i.gkd.li/import/13263801', 'https://i.gkd.li/import/13263801',
], ],
}, },
{ {
key: 3, key: 1,
name: '学习-弹窗', name: '学习页面-弹窗广告',
activityIds: 'com.youdao.dict.edu.main.MainPopDialog', activityIds: 'com.youdao.dict.edu.main.MainPopDialog',
rules: '@ImageView[id="com.youdao.dict:id/iv_close"]',
quickFind: true, quickFind: true,
matches: '@ImageView[id="com.youdao.dict:id/iv_close"]',
snapshotUrls: 'https://i.gkd.li/import/12893450', snapshotUrls: 'https://i.gkd.li/import/12893450',
}, },
],
},
{ {
key: 4, key: 4,
name: 'VIP-弹窗', name: 'VIP-弹窗',
@ -69,5 +79,15 @@ export default defineAppConfig({
rules: '[id="com.youdao.dict:id/btn_never"][text*="不再提醒"]', rules: '[id="com.youdao.dict:id/btn_never"][text*="不再提醒"]',
snapshotUrls: 'https://i.gkd.li/import/13540941', snapshotUrls: 'https://i.gkd.li/import/13540941',
}, },
{
key: 6,
name: '更新弹窗',
quickFind: true,
actionMaximum: 1,
resetMatch: 'app',
rules:
'[id="com.youdao.dict:id/tv_version"] + [id="com.youdao.dict:id/iv_close"]',
snapshotUrls: 'https://i.gkd.li/import/13627912',
},
], ],
}); });