mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
chore: sync
This commit is contained in:
@@ -11,6 +11,8 @@ export default <AppConfig>{
|
||||
`miuix.appcompat.app.m`,
|
||||
],
|
||||
rules: [
|
||||
// https://gkd-kit.gitee.io/import/38517192/50c858ee-d331-4d5a-b5db-5eb17323c5ff
|
||||
`@TextView[text^='跳过'] + LinearLayout TextView[text*="跳转"]`,
|
||||
`[text^='跳过'] + * >2 TextView[text*='跳转']`, // 1686970245243, 1686970188866
|
||||
],
|
||||
},
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import type { AppConfig } from '../types';
|
||||
|
||||
export default <AppConfig>{
|
||||
id: 'air.tv.douyu.android',
|
||||
id: 'com.kwai.videoeditor',
|
||||
groups: [
|
||||
{
|
||||
key: 0,
|
||||
name: `快影-开屏广告`,
|
||||
activityIds: `com.kwai.videoeditor.activity.splash.InnerVideoSplashActivity`,
|
||||
// https://gkd-kit.gitee.io/import/38517192/d12c3b08-8233-4584-b2b9-595ebb4ce665
|
||||
rules: [`Button[text="跳过"]`],
|
||||
},
|
||||
],
|
||||
|
||||
14
src/main.ts
14
src/main.ts
@@ -1,11 +1,23 @@
|
||||
import { relativePath, walk, writeConfig } from './file';
|
||||
import { AppConfig, AppConfigMudule } from './types';
|
||||
import url from 'node:url';
|
||||
import path from 'node:path';
|
||||
import picocolors from 'picocolors';
|
||||
|
||||
const apps: AppConfig[] = [];
|
||||
for await (const tsFp of walk(relativePath('./apps'))) {
|
||||
const mod: AppConfigMudule = await import(url.pathToFileURL(tsFp).href);
|
||||
apps.push(mod.default);
|
||||
const appConfig = mod.default;
|
||||
if (path.basename(tsFp, `.ts`) != appConfig.id) {
|
||||
throw new Error(
|
||||
`${picocolors.blue(
|
||||
tsFp,
|
||||
)} file basename is not equal to its app id ${picocolors.blue(
|
||||
appConfig.id,
|
||||
)} `,
|
||||
);
|
||||
}
|
||||
apps.push(appConfig);
|
||||
}
|
||||
|
||||
// a,b,c,d
|
||||
|
||||
Reference in New Issue
Block a user