mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
feat: 规则分类+全局规则组
This commit is contained in:
42
src/globalGroups.ts
Normal file
42
src/globalGroups.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
import type { RawGlobalGroup } from './types';
|
||||
|
||||
const globalGroups: RawGlobalGroup[] = [
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
actionMaximum: 1,
|
||||
matchTime: 10000,
|
||||
resetMatch: 'app',
|
||||
actionCdKey: 0,
|
||||
actionMaximumKey: 0,
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
quickFind: true,
|
||||
matches: '[text*="跳过"][text.length<10]',
|
||||
action: 'clickCenter',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
matches:
|
||||
'[id*="skip"||((text*="跳过"||text*="skip")&&text.length<10)||desc*="skip"||desc*="跳过"][editable=false]',
|
||||
action: 'clickCenter',
|
||||
},
|
||||
],
|
||||
apps: [
|
||||
{
|
||||
id: 'com.android.systemui',
|
||||
enable: false,
|
||||
},
|
||||
{
|
||||
id: 'com.miui.aod',
|
||||
enable: false,
|
||||
},
|
||||
{
|
||||
id: 'com.miui.home',
|
||||
enable: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
export default globalGroups;
|
||||
Reference in New Issue
Block a user