feat(迅雷): 视频详情页广告(补充规则)、更新弹窗 (#1727)

* feat 视频详情页广告(补充规则)

* feat 更新弹窗

* feat(迅雷): 规则优化

---------

Co-authored-by: lisonge <i@songe.li>
This commit is contained in:
Kun Jinkao
2023-11-02 21:44:50 +08:00
committed by GitHub
parent 310ab52f11
commit 14580c5ea2

View File

@@ -3,10 +3,12 @@ import { defineAppConfig } from '../types';
export default defineAppConfig({ export default defineAppConfig({
id: 'com.xunlei.downloadprovider', id: 'com.xunlei.downloadprovider',
name: '迅雷', name: '迅雷',
deprecatedKeys: [11],
groups: [ groups: [
{ {
key: 0, key: 0,
name: '开屏广告', name: '开屏广告',
quickFind: true,
activityIds: 'com.xunlei.downloadprovider.launch.LaunchActivity', activityIds: 'com.xunlei.downloadprovider.launch.LaunchActivity',
rules: 'TextView[text^="跳过"]', rules: 'TextView[text^="跳过"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12707693', snapshotUrls: 'https://gkd-kit.gitee.io/import/12707693',
@@ -14,6 +16,7 @@ export default defineAppConfig({
{ {
key: 1, key: 1,
name: '视频详情页广告', name: '视频详情页广告',
quickFind: true,
activityIds: activityIds:
'com.xunlei.downloadprovider.download.taskdetails.newui.DownloadDetailsActivity', 'com.xunlei.downloadprovider.download.taskdetails.newui.DownloadDetailsActivity',
rules: [ rules: [
@@ -40,12 +43,19 @@ export default defineAppConfig({
matches: '[id="com.xunlei.downloadprovider:id/ad_ima_skip"]', matches: '[id="com.xunlei.downloadprovider:id/ad_ima_skip"]',
snapshotUrls: 'https://i.gkd.li/import/12882988', snapshotUrls: 'https://i.gkd.li/import/12882988',
}, },
{
key: 3,
matches:
'[id="com.xunlei.downloadprovider:id/play_detail_ad_title"] + [id="com.xunlei.downloadprovider:id/close_iv"]',
snapshotUrls: 'https://i.gkd.li/import/13228423',
},
], ],
}, },
{ {
key: 2, key: 2,
name: '视频详情-直播推荐', name: '视频详情-直播推荐',
desc: '自动点击【减少推荐】', desc: '自动点击【减少推荐】',
quickFind: true,
rules: [ rules: [
{ {
key: 0, key: 0,
@@ -193,14 +203,24 @@ export default defineAppConfig({
{ {
key: 5, key: 5,
name: '搜索页面-顶部banner广告', name: '搜索页面-顶部banner广告',
quickFind: true,
activityIds: activityIds:
'com.xunlei.downloadprovider.search.ui.search.SearchOperateActivity', 'com.xunlei.downloadprovider.search.ui.search.SearchOperateActivity',
rules: '[id="com.xunlei.downloadprovider:id/search_banner_ad_close"]', rules: '[id="com.xunlei.downloadprovider:id/search_banner_ad_close"]',
snapshotUrls: 'https://i.gkd.li/import/12882892', snapshotUrls: 'https://i.gkd.li/import/12882892',
}, },
{
key: 6,
name: '更新弹窗',
quickFind: true,
activityIds: 'com.xunlei.upgrade.XUpgradeActivity',
rules: '[id="com.xunlei.downloadprovider:id/x_upgrade_cancel"]',
snapshotUrls: 'https://i.gkd.li/import/13228920',
},
{ {
key: 10, key: 10,
name: '会员续费广告', name: '会员续费广告',
quickFind: true,
rules: [ rules: [
{ {
key: 0, key: 0,