mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
feat: 开屏广告 order=-1
This commit is contained in:
@@ -90,6 +90,13 @@ export const writeConfig = async (config: RawSubscription) => {
|
||||
'utf-8',
|
||||
);
|
||||
|
||||
newConfig.apps?.forEach((app) => {
|
||||
app.groups?.forEach((g) => {
|
||||
if (g.name.startsWith('开屏广告')) {
|
||||
g.order = -1;
|
||||
}
|
||||
});
|
||||
});
|
||||
// update gkd.json
|
||||
const buffer = Buffer.from(orderdStringify5(newConfig, sortKeys), 'utf-8');
|
||||
await fs.writeFile(gkdFp, buffer);
|
||||
|
||||
@@ -31,6 +31,7 @@ const globalGroups: RawGlobalGroup[] = [
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
order: -1,
|
||||
actionMaximum: 2,
|
||||
matchTime: 10000,
|
||||
resetMatch: 'app',
|
||||
|
||||
Reference in New Issue
Block a user