feat(快手): 开屏广告, 首页-红包弹窗(默认关闭),首页-左侧红包悬浮控件(默认关闭),你可能感兴趣的人(默认关闭) (#339)

* feat(快手)

* feat(快手)
This commit is contained in:
Kun Jinkao 2023-09-25 00:45:42 +08:00 committed by GitHub
parent 2afd1546f8
commit db6228ea0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,11 +5,80 @@ export default defineAppConfig({
name: '快手',
groups: [
{
key: 0,
name: '关闭青少年弹窗',
key: -1,
name: '开屏广告',
activityIds: 'com.yxcorp.gifshow.HomeActivity',
rules:
'@[id=`com.smile.gifmaker:id/positive`] + [id=`com.smile.gifmaker:id/set_teenage_mode`]',
rules: '[id="com.smile.gifmaker:id/splash_skip_text"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12708602',
},
{
key: 0,
name: '青少年模式弹窗',
activityIds: 'com.yxcorp.gifshow.HomeActivity',
rules: [
{
matches:
'@[id=`com.smile.gifmaker:id/positive`] + [id=`com.smile.gifmaker:id/set_teenage_mode`]',
},
{
matches:
'[id="com.smile.gifmaker:id/set_teenage_mode"] + [id="com.smile.gifmaker:id/positive"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12708609',
},
],
},
{
enable: false,
key: 10,
name: '首页-红包弹窗',
desc: '自动点击x按钮',
activityIds: 'com.yxcorp.gifshow.HomeActivity',
rules: [
{
name: '老友回归红包弹窗',
matches:
'@ImageView[id=null][clickable=true] + ViewGroup > [text!=null] + [text!=null]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12708649',
'https://gkd-kit.gitee.io/import/12708660',
],
},
{
name: '限时高额奖励弹窗',
matches:
'@ImageView[id=null][clickable=true] < ViewGroup + ViewGroup >2 [text="立即领取"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12708681'],
},
],
},
{
enable: false,
key: 11,
name: '首页-左侧红包悬浮控件',
desc: '自动点击x按钮',
activityIds: 'com.yxcorp.gifshow.HomeActivity',
rules: [
{
matches:
'[id="com.smile.gifmaker:id/pendant_mask_bg"] + [id="com.smile.gifmaker:id/pendant_close"][visibleToUser=true]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12708671',
'https://gkd-kit.gitee.io/import/12708676', // 执行规则后,控件隐藏,使用 visibleToUser=true 进行限定,防止反复触发规则
],
},
],
},
{
enable: false,
key: 12,
name: '你可能感兴趣的人',
desc: '自动点击【关闭】',
activityIds: 'com.yxcorp.gifshow.HomeActivity',
rules: '[id="com.smile.gifmaker:id/close_pymk"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12708620',
'https://gkd-kit.gitee.io/import/12708707',
],
},
],
});