feat(Blued极速版): 开屏、页面内卡片广告 (#2522)

* feat(Blued极速版): 开屏、页面内卡片广告

* chore(actions): check_format_lint

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Crezinx
2023-11-26 22:12:04 +08:00
committed by GitHub
parent 391459b58b
commit 47d2f6af90

View File

@@ -0,0 +1,63 @@
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.danlan.xiaolan',
name: 'Blued极速版',
groups: [
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
activityIds: 'com.blued.android.core.ui.TerminalActivity',
rules: [
{
matches:
'[id="com.danlan.xiaolan:id/tt_splash_skip_btn"][clickable=true]',
snapshotUrls: ['https://i.gkd.li/import/13421629'],
},
],
},
{
key: 1,
quickFind: true,
name: '附近的人-广告卡片',
activityIds: 'com.soft.blued.ui.home.HomeActivity',
rules: [
{
key: 0,
matches:
'[id="com.danlan.xiaolan:id/ad_container"] >n [id="com.danlan.xiaolan:id/img_close"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13421613',
},
{
preKeys: [0],
key: 1,
matches: '@LinearLayout > [text="不感兴趣"]',
snapshotUrls: 'https://i.gkd.li/import/13421622',
},
],
},
{
key: 3,
quickFind: true,
name: '来访-广告卡片',
activityIds: 'com.blued.android.core.ui.TerminalActivity',
rules: [
{
key: 0,
matches: '[id="com.danlan.xiaolan:id/img_close"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13421923',
},
{
preKeys: [0],
key: 1,
matches: '@LinearLayout > [text="不感兴趣"]',
snapshotUrls: 'https://i.gkd.li/import/13422170',
},
],
},
],
});