mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-18 07:45:10 +08:00
74 lines
2.4 KiB
TypeScript
74 lines
2.4 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.tencent.news',
|
|
name: '腾讯新闻',
|
|
groups: [
|
|
{
|
|
key: 0,
|
|
name: '开屏广告',
|
|
activityIds: [
|
|
'com.tencent.news.activity.SplashActivity',
|
|
'com.miui.home.launcher.Launcher',
|
|
],
|
|
rules: '@[text="跳过"] - LinearLayout > [text*="广告"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12755818',
|
|
'https://i.gkd.li/import/12755896',
|
|
'https://i.gkd.li/import/12755901', // activityId: 'com.miui.home.launcher.Launcher'
|
|
],
|
|
},
|
|
{
|
|
key: 1,
|
|
name: '信息流广告',
|
|
desc: '自动点击【更多】->【不感兴趣】',
|
|
activityIds: [
|
|
'com.tencent.news.activity.SplashActivity',
|
|
'com.miui.home.launcher.Launcher',
|
|
],
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
name: '点击【更多】按钮',
|
|
matches:
|
|
'FrameLayout[id="android:id/content"][childCount=1] >n [text="广告"] +n [id="com.tencent.news:id/dislike_streamAd_more"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12755834',
|
|
'https://i.gkd.li/import/12755852', // 使用 FrameLayout[id="android:id/content"][childCount=1] 进行限定,防止点击【更多】按钮后继续触发规则
|
|
'https://i.gkd.li/import/12755914', // activityId: 'com.miui.home.launcher.Launcher'
|
|
],
|
|
},
|
|
{
|
|
preKeys: [0],
|
|
key: 1,
|
|
name: '点击【不感兴趣】按钮',
|
|
matches:
|
|
'[id="com.tencent.news:id/dislike_reason_view"] >n [text="不感兴趣"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12755852',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 2,
|
|
name: '广告、活动弹窗',
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
activityIds: 'com.tencent.news.activity.SplashActivity',
|
|
matches: '@[text="关闭"] + [text="查看活动详情"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12755872',
|
|
},
|
|
// 在这个规则组中继续添加广告、活动弹窗
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 10,
|
|
name: '请求通知权限弹窗',
|
|
activityIds: 'com.tencent.news.activity.SplashActivity',
|
|
rules: '[text="开启通知"] + [text="先不了"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12755824',
|
|
},
|
|
],
|
|
});
|