feat(一刻相册): 开屏广告, 升级弹窗 (#68)

* 添加一刻相册广告跳过规则

* feat(一刻相册):跳过开屏广告+升级弹窗

* fix(一刻相册): 软件升级提醒-增强选择器准确性

---------

Co-authored-by: lisonge <i@songe.li>
This commit is contained in:
jhonson 2023-09-13 21:50:07 +08:00 committed by GitHub
parent d5f002830d
commit 1258cd337b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,31 @@
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.baidu.youavideo',
name: '一刻相册',
groups: [
{
key: 1,
name: '开屏广告',
activityIds: ['com.baidu.youavideo.app.ui.SplashActivity'],
rules: [
{
matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12597925'],
},
],
},
{
key: 2,
name: '软件升级提醒',
activityIds: ['com.baidu.youavideo.home.view.HomeActivity'],
rules: [
{
matches:
'[id="com.baidu.youavideo:id/tv_upgrade"] < LinearLayout +2 [id="com.baidu.youavideo:id/img_close"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12597916'],
},
],
},
],
});