mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-28 07:54:22 -04:00
Drop MoreThemes
This commit is contained in:
parent
252c4929cc
commit
75216ad833
2 changed files with 1 additions and 34 deletions
|
@ -1,32 +0,0 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2025 Vendicated and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
|
||||
export default definePlugin({
|
||||
name: "MoreThemes",
|
||||
description: "Enables Darker and Midnight themes",
|
||||
authors: [Devs.Kyuuhachi],
|
||||
|
||||
patches: [
|
||||
{ // matches twice: the settings menu and the settings context menu
|
||||
find: '("appearance_settings")',
|
||||
replacement: {
|
||||
match: /\("appearance_settings"\)/,
|
||||
replace: "$&||true"
|
||||
},
|
||||
all: true,
|
||||
},
|
||||
{ // make it actually save the setting instead of falling back to dark
|
||||
find: ')("ThemeStore"))return',
|
||||
replacement: {
|
||||
match: /(?<=\)\("ThemeStore"\))(?=\)return)/,
|
||||
replace: "&&false"
|
||||
},
|
||||
}
|
||||
],
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue