feat(CSDN): 开屏广告,更新弹窗,信息流广告,请求推送通知弹窗 (#214)

Co-authored-by: 二刺螈 <i@songe.li>
This commit is contained in:
Kun Jinkao 2023-09-22 00:03:06 +08:00 committed by GitHub
parent ac9a5a2cd8
commit 0743808fcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,27 +8,61 @@ export default defineAppConfig({
key: 0,
name: '开屏广告',
activityIds: 'net.csdn.csdnplus.activity.SplashActivity',
rules: '[id="net.csdn.csdnplus:id/tv_skip_splashimage"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668884',
},
{
key: 1,
name: '推荐条目广告',
activityIds: 'net.csdn.csdnplus.activity.MainActivity',
rules: [
{
key: 0,
matches:
'TextView[text="广告"] + ImageView[id="net.csdn.csdnplus:id/iv_more"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668903',
},
{
key: 1,
matches:
'[id="net.csdn.csdnplus:id/img_feedback_title"][text="虚假广告"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668923',
matches: '[id="net.csdn.csdnplus:id/tv_skip_splashimage"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12673680'],
},
],
},
{
key: 1,
name: '更新弹窗',
activityIds: [
'net.csdn.csdnplus.activity.MainActivity',
'net.csdn.csdnplus.activity.SetActivity',
],
rules: [
{
matches:
'@[id="net.csdn.csdnplus:id/cancel"][text="以后再说"] +(2) [id="net.csdn.csdnplus:id/update"][text="立即安装"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12673693',
'https://gkd-kit.gitee.io/import/12673654',
],
},
],
},
{
key: 2,
name: '信息流广告',
activityIds: ['net.csdn.csdnplus.activity.MainActivity'],
rules: [
{
key: 1,
matches:
'TextView[id=null][text="广告"] + ImageView[id="net.csdn.csdnplus:id/iv_more"][clickable=true]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12673738'],
},
{
preKeys: [1],
key: 2,
matches:
'[id="net.csdn.csdnplus:id/img_feedback_title"][text="虚假广告"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12673787'],
},
],
},
{
enable: false,
key: 10,
name: '请求推送通知弹窗',
activityIds: 'net.csdn.csdnplus.activity.MainActivity',
rules: {
matches:
'@[id="net.csdn.csdnplus:id/iv_close"][clickable=true] + LinearLayout > [text="开启推送通知"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12673638'],
},
},
],
});