diff --git a/src/api/Commands/index.ts b/src/api/Commands/index.ts index ef4db171..147f720a 100644 --- a/src/api/Commands/index.ts +++ b/src/api/Commands/index.ts @@ -67,7 +67,7 @@ export const _handleCommand = function (cmd: Command, args: Argument[], ctx: Com sendBotMessage(ctx.channel.id, { content: `${msg}:\n${makeCodeblock(reason)}`, author: { - username: "Vencord" + username: "Equicord" } }); }; diff --git a/src/equicordplugins/newPluginsManager/index.tsx b/src/equicordplugins/newPluginsManager/index.tsx index 8c693882..294036ab 100644 --- a/src/equicordplugins/newPluginsManager/index.tsx +++ b/src/equicordplugins/newPluginsManager/index.tsx @@ -12,7 +12,7 @@ import { openNewPluginsModal } from "./NewPluginsModal"; export default definePlugin({ name: "NewPluginsManager", - description: "Utility that notifies you when new plugins are added to Vencord", + description: "Utility that notifies you when new plugins are added to Equicord", authors: [Devs.Sqaaakoi], flux: { async POST_CONNECTION_OPEN() { diff --git a/src/equicordplugins/title/index.ts b/src/equicordplugins/title/index.ts index 0314f815..9e67a72a 100644 --- a/src/equicordplugins/title/index.ts +++ b/src/equicordplugins/title/index.ts @@ -15,7 +15,7 @@ const rootTitle = { base: null as string | null }; export const settings = definePluginSettings({ title: { type: OptionType.STRING, - default: "Vencord", + default: "Equicord", description: "Window title prefix", onChange: setTitle, }, diff --git a/src/equicordplugins/vencordRPC/index.ts b/src/equicordplugins/vencordRPC/index.ts index 5a0cba47..e0e2f13f 100644 --- a/src/equicordplugins/vencordRPC/index.ts +++ b/src/equicordplugins/vencordRPC/index.ts @@ -241,7 +241,7 @@ async function createActivity(): Promise { let { type } = settings.store; - let appName = "Vencord"; + let appName = "Equicord"; let details = ""; let state = ""; let imageBig = ""; diff --git a/src/main/index.ts b/src/main/index.ts index cc2eb14e..8f6a677a 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -53,6 +53,31 @@ if (IS_VESKTOP || !IS_VANILLA) { } }); + protocol.registerFileProtocol("equicord", ({ url: unsafeUrl }, cb) => { + let url = unsafeUrl.slice("equicord://".length); + if (url.endsWith("/")) url = url.slice(0, -1); + if (url.startsWith("/themes/")) { + const theme = url.slice("/themes/".length); + const safeUrl = ensureSafePath(THEMES_DIR, theme); + if (!safeUrl) { + cb({ statusCode: 403 }); + return; + } + cb(safeUrl.replace(/\?v=\d+$/, "")); + return; + } + switch (url) { + case "renderer.js.map": + case "preload.js.map": + case "patcher.js.map": + case "main.js.map": + cb(join(__dirname, url)); + break; + default: + cb({ statusCode: 403 }); + } + }); + try { if (RendererSettings.store.enableReactDevtools) installExt("fmkadmapgofadopljbjfkapdkoienihi") diff --git a/src/plugins/xsOverlay.desktop/index.ts b/src/plugins/xsOverlay.desktop/index.ts index 8b06475c..b48c4d7a 100644 --- a/src/plugins/xsOverlay.desktop/index.ts +++ b/src/plugins/xsOverlay.desktop/index.ts @@ -271,7 +271,7 @@ function sendMsgNotif(titleString: string, content: string, message: Message) { content: content, useBase64Icon: true, icon: result, - sourceApp: "Vencord" + sourceApp: "Equicord" }; Native.sendToOverlay(msgData); }); @@ -290,7 +290,7 @@ function sendOtherNotif(content: string, titleString: string) { content: content, useBase64Icon: false, icon: null, - sourceApp: "Vencord" + sourceApp: "Equicord" }; Native.sendToOverlay(msgData); } diff --git a/src/utils/themes/usercss/compiler.ts b/src/utils/themes/usercss/compiler.ts index 16e69677..d366ac13 100644 --- a/src/utils/themes/usercss/compiler.ts +++ b/src/utils/themes/usercss/compiler.ts @@ -68,7 +68,7 @@ export async function compileUsercss(fileName: string) { const preprocessorFn = preprocessors[preprocessor]; if (!preprocessorFn) { - UserCSSLogger.error("File", fileName, "requires preprocessor", preprocessor, "which isn't known to Vencord"); + UserCSSLogger.error("File", fileName, "requires preprocessor", preprocessor, "which isn't known to Equicord"); return null; }