mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-23 10:15:31 +08:00
75 lines
2.2 KiB
TypeScript
75 lines
2.2 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.taptap',
|
|
name: 'TapTap',
|
|
groups: [
|
|
{
|
|
key: 1,
|
|
name: '开屏广告', //占位,避免和全局开屏广告规则误触
|
|
rules: [
|
|
{
|
|
matches: '[text*="跳过"][text.length<10][visibleToUser=true]',
|
|
snapshotUrls: ['https://i.gkd.li/import/13946250'],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 2,
|
|
name: '局部广告-游戏浏览页面推荐广告',
|
|
desc: '自动点击"对此内容不感兴趣"',
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
activityIds: 'com.taptap.other.basic.impl.TapMainActivity',
|
|
|
|
matches:
|
|
'[id="com.taptap.app.middle:id/decision_layout_mask"] + @[id="com.taptap.app.game:id/app_menu"][visibleToUser=true]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12840903',
|
|
'https://i.gkd.li/import/12842279',
|
|
'https://i.gkd.li/import/12864810', //需避免点击正常情况下的app menu
|
|
],
|
|
},
|
|
{
|
|
key: 1,
|
|
activityIds: [
|
|
'com.taptap.game.discovery.impl.findgame.allgame.dialog.FindGameMenuDialog',
|
|
'com.taptap.other.basic.impl.TapMainActivity',
|
|
],
|
|
matches: '@LinearLayout > [text="对此内容不感兴趣"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12840904',
|
|
'https://i.gkd.li/import/13258679', //other.basic.impl.TapMainActivity
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 3,
|
|
name: '更新提示',
|
|
quickFind: true,
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
rules: [
|
|
{
|
|
matches: '@[vid="btn_dismiss"] -2 * >2 [text="发现新版本"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13387479',
|
|
'https://i.gkd.li/import/13488702',
|
|
'https://i.gkd.li/import/14209268',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 4,
|
|
name: '青少年模式-首页顶部横幅提示',
|
|
quickFind: true,
|
|
resetMatch: 'app',
|
|
rules: '[text*="青少年模式"] + [vid="iv_close"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/14209309',
|
|
},
|
|
],
|
|
});
|