mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-19 16:25:09 +08:00
feat(腾讯视频): 若干优化 (#2362)
* feat 开屏广告(优化规则) * feat 青少年模式弹窗(优化规则) * feat 更新弹窗(优化规则) * feat 卡片式广告(优化、补充规则) * feat 请求通知权限弹窗(优化规则) * feat 视频播放时的广告(优化规则)
This commit is contained in:
@@ -3,16 +3,16 @@ import { defineAppConfig } from '../types';
|
|||||||
export default defineAppConfig({
|
export default defineAppConfig({
|
||||||
id: 'com.tencent.qqlive',
|
id: 'com.tencent.qqlive',
|
||||||
name: '腾讯视频',
|
name: '腾讯视频',
|
||||||
|
deprecatedKeys: [5, 19],
|
||||||
groups: [
|
groups: [
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
name: '开屏广告',
|
name: '开屏广告',
|
||||||
matchLauncher: true,
|
|
||||||
quickFind: true,
|
quickFind: true,
|
||||||
activityIds: 'com.tencent.qqlive.ona.activity.SplashHomeActivity',
|
matchTime: 10000,
|
||||||
rules: [
|
actionMaximum: 1,
|
||||||
{
|
resetMatch: 'app',
|
||||||
matches: 'FrameLayout[id=null] > TextView[text="跳过"][id=null]',
|
rules: 'FrameLayout[id=null] > TextView[text="跳过"][id=null]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/12700227',
|
'https://i.gkd.li/import/12700227',
|
||||||
'https://i.gkd.li/import/12700122',
|
'https://i.gkd.li/import/12700122',
|
||||||
@@ -20,54 +20,100 @@ export default defineAppConfig({
|
|||||||
'https://i.gkd.li/import/12910953',
|
'https://i.gkd.li/import/12910953',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
name: '关闭青少年弹窗',
|
name: '青少年模式弹窗',
|
||||||
activityIds: [
|
actionMaximum: 1,
|
||||||
'com.tencent.qqlive.ona.update.trunk.client.TrunkUpdateActivity',
|
resetMatch: 'app',
|
||||||
'com.tencent.qqlive.ona.activity.SplashHomeActivity',
|
quickFind: true,
|
||||||
],
|
rules: 'TextView[text*="青少年模式"] +n TextView[text="我知道了"]',
|
||||||
rules:
|
|
||||||
'TextView[text*="青少年模式"] +n TextView[id="com.tencent.qqlive:id/arg"][text="我知道了"]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12700145',
|
snapshotUrls: 'https://i.gkd.li/import/12700145',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 2,
|
key: 2,
|
||||||
name: '更新弹窗',
|
name: '更新弹窗',
|
||||||
activityIds: [
|
actionMaximum: 1,
|
||||||
'com.tencent.qqlive.ona.update.trunk.client.TrunkUpdateActivity',
|
resetMatch: 'app',
|
||||||
],
|
quickFind: true,
|
||||||
rules:
|
rules:
|
||||||
'@[text="暂不升级"] - LinearLayout > FrameLayout > [text="立即升级"]',
|
'@[text="暂不升级"] - LinearLayout > FrameLayout > [text="立即升级"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12700486',
|
snapshotUrls: 'https://i.gkd.li/import/12700486',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
enable: false,
|
||||||
key: 3,
|
key: 3,
|
||||||
name: '首页-顶部广告卡片',
|
name: '卡片式广告',
|
||||||
activityIds: ['com.tencent.qqlive.ona.activity.SplashHomeActivity'],
|
activityIds: 'com.tencent.qqlive.ona.activity.SplashHomeActivity',
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
name: '点击右上角[广告]',
|
key: 0,
|
||||||
|
name: '首页顶部卡片广告',
|
||||||
matches:
|
matches:
|
||||||
'FrameLayout - RelativeLayout > RelativeLayout > FrameLayout + ImageView[clickable=true]',
|
'FrameLayout - RelativeLayout > RelativeLayout > FrameLayout + ImageView[clickable=true][childCount=0]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/12700299',
|
'https://i.gkd.li/import/12700299',
|
||||||
'https://i.gkd.li/import/12700302',
|
'https://i.gkd.li/import/12700302',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '点击右上角[关闭广告]',
|
key: 1,
|
||||||
|
name: '首页顶部背景广告',
|
||||||
matches: '[text="关闭广告"][clickable=true]',
|
matches: '[text="关闭广告"][clickable=true]',
|
||||||
snapshotUrls: ['https://i.gkd.li/import/12700518'],
|
snapshotUrls: 'https://i.gkd.li/import/12700518',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
key: 2,
|
||||||
|
name: '个人中心页中间卡片广告',
|
||||||
|
matches:
|
||||||
|
'ViewGroup > TextView + LinearLayout[childCount=2] + ImageView[clickable=true]',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/12700175',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 3,
|
||||||
|
name: '个人中心页顶部背景广告',
|
||||||
|
matches:
|
||||||
|
'RelativeLayout > FrameLayout + @ImageView[clickable=true] + ImageView + ImageView',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/12777344',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 4,
|
||||||
name: '点击右上角[广告]',
|
name: '点击右上角[广告]',
|
||||||
matches:
|
matches:
|
||||||
'RelativeLayout[id=null] > @FrameLayout[clickable=true][id!=null] > ImageView[desc="the ad tag"]',
|
'RelativeLayout[id=null] > @FrameLayout[clickable=true][id!=null] > ImageView[desc="the ad tag"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12737313',
|
snapshotUrls: 'https://i.gkd.li/import/12737313',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 5,
|
||||||
|
name: '点击右下角关闭',
|
||||||
|
matches:
|
||||||
|
'ImageView[childCount=0] <<2 RelativeLayout + FrameLayout + RelativeLayout > RelativeLayout > RelativeLayout > ImageView',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/13426421',
|
||||||
|
},
|
||||||
|
// 以下是配合本规则组内其他key使用的规则,反馈界面的规则都是一样的
|
||||||
|
{
|
||||||
|
key: 98,
|
||||||
|
name: '广告反馈卡片-选择原因',
|
||||||
|
quickFind: true,
|
||||||
|
activityIds:
|
||||||
|
'com.tencent.qqlive.qaduikit.common.dialog.feedback.variable.QAdFeedbackVariableDislikeItemDialog',
|
||||||
|
matches:
|
||||||
|
'[text="关闭这条广告的原因"] +(2) RecyclerView > [text="不感兴趣"]',
|
||||||
|
snapshotUrls: [
|
||||||
|
'https://i.gkd.li/import/12700303',
|
||||||
|
'https://i.gkd.li/import/12829866',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
preKeys: [98],
|
||||||
|
key: 99,
|
||||||
|
name: '广告反馈卡片-确认',
|
||||||
|
quickFind: true,
|
||||||
|
activityIds:
|
||||||
|
'com.tencent.qqlive.qaduikit.common.dialog.feedback.variable.QAdFeedbackVariableDislikeItemDialog',
|
||||||
|
matches:
|
||||||
|
'[text="关闭这条广告的原因"] + [text="确认"][clickable=true]',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/12700210',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -78,7 +124,8 @@ export default defineAppConfig({
|
|||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
name: '点击[跳过广告]',
|
name: '全屏广告',
|
||||||
|
quickFind: true,
|
||||||
matches:
|
matches:
|
||||||
'@[text$="跳过广告"][clickable=true] < LinearLayout > [text="VIP可关闭该广告"]',
|
'@[text$="跳过广告"][clickable=true] < LinearLayout > [text="VIP可关闭该广告"]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
@@ -88,64 +135,19 @@ export default defineAppConfig({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
name: '点击左下角广告横幅右上角x',
|
name: '左下角悬浮广告',
|
||||||
matches:
|
matches:
|
||||||
'FrameLayout[childCount=2] > FrameLayout > RelativeLayout > View[id!=null][clickable=true]',
|
'FrameLayout[childCount=2] > FrameLayout > RelativeLayout > View[id!=null][clickable=true]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13043079',
|
snapshotUrls: 'https://i.gkd.li/import/13043079',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 5,
|
|
||||||
name: '个人中心广告',
|
|
||||||
activityIds: ['com.tencent.qqlive.ona.activity.SplashHomeActivity'],
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
key: 0,
|
|
||||||
matches:
|
|
||||||
'ViewGroup > TextView + LinearLayout[childCount=2] + ImageView[clickable=true]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12700175',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 1,
|
|
||||||
matches:
|
|
||||||
'RelativeLayout > FrameLayout + @ImageView[clickable=true] + ImageView + ImageView',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12777344',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 19, // 配合应用内其他广告卡片使用,反馈界面的规则都是一样的
|
|
||||||
name: '广告反馈卡片',
|
|
||||||
desc: '自动点击 不感兴趣 -> 确定',
|
|
||||||
activityIds: [
|
|
||||||
'com.tencent.qqlive.ona.activity.SplashHomeActivity',
|
|
||||||
'com.tencent.qqlive.qaduikit.common.dialog.feedback.variable.QAdFeedbackVariableDislikeItemDialog',
|
|
||||||
],
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
key: 1,
|
|
||||||
matches:
|
|
||||||
'[text="关闭这条广告的原因"] +(2) RecyclerView > [text="不感兴趣"]',
|
|
||||||
snapshotUrls: [
|
|
||||||
'https://i.gkd.li/import/12700303',
|
|
||||||
'https://i.gkd.li/import/12829866',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
preKeys: [1],
|
|
||||||
key: 2,
|
|
||||||
matches:
|
|
||||||
'[text="关闭这条广告的原因"] + [text="确认"][clickable=true]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12700210',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
enable: false,
|
enable: false,
|
||||||
key: 20,
|
key: 20,
|
||||||
name: '请求开启推送通知弹窗',
|
name: '请求通知权限弹窗',
|
||||||
desc: '自动点击“以后再说”',
|
desc: '自动点击[以后再说]',
|
||||||
|
quickFind: true,
|
||||||
activityIds:
|
activityIds:
|
||||||
'com.tencent.qqlive.ona.update.trunk.client.TrunkUpdateActivity',
|
'com.tencent.qqlive.ona.update.trunk.client.TrunkUpdateActivity',
|
||||||
rules: 'LinearLayout > @[text="以后再说"] + [text="好的"]',
|
rules: 'LinearLayout > @[text="以后再说"] + [text="好的"]',
|
||||||
|
|||||||
Reference in New Issue
Block a user