Files
AIsouler-GKD_subscription/src/apps/com.tencent.mtt.ts
2024-02-23 21:42:34 +08:00

82 lines
2.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.tencent.mtt',
name: 'QQ浏览器',
groups: [
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
matches: '@LinearLayout[clickable=true] > TextView[text="跳过"]',
snapshotUrls: 'https://i.gkd.li/i/12472630',
},
'@View[id=null] + ImageView + FrameLayout TextView[text=`向上滑动或点击查看`]', // 缺少快照
],
},
{
enable: false,
key: 10,
name: '分段广告-小说阅读页面-卡片广告',
activityIds: 'com.tencent.mtt.MainActivity',
rules: [
{
actionCd: 3000,
key: 0,
name: '点击广告按钮',
excludeMatches: '[desc="屏蔽此广告"||desc="不感兴趣"]',
matches:
'@ViewGroup[clickable=true][visibleToUser=true] > ViewGroup > [desc="广告"]',
snapshotUrls: [
'https://i.gkd.li/i/12907446',
'https://i.gkd.li/i/12907445', // 限定 visibleToUser=true防止在节点不可见时触发规则
],
},
{
preKeys: 0,
key: 1,
name: '点击[屏蔽此广告]',
matches: '@ViewGroup > [desc="屏蔽此广告"]',
snapshotUrls: [
'https://i.gkd.li/i/12907654',
'https://i.gkd.li/i/12907651',
],
},
{
preKeys: 1,
key: 2,
name: '点击[不感兴趣]',
matches: '@ViewGroup > [desc="不感兴趣"]',
snapshotUrls: [
'https://i.gkd.li/i/12907655',
'https://i.gkd.li/i/12907653',
],
},
],
},
{
key: 11,
name: '分段广告-小说阅读页面-视频广告',
activityIds: 'com.qq.e.tg.RewardvideoPortraitADActivity',
rules: [
{
key: 0,
matches: '[text="腾讯广告"] >n [id^="button_close"]',
snapshotUrls: 'https://i.gkd.li/i/12909822',
},
{
preKeys: 0,
key: 1,
matches: '[id="com.tencent.mtt:id/reward_dialog_close"]',
snapshotUrls: 'https://i.gkd.li/i/12908955',
},
],
},
],
});