From 38b53486a92c86c536f1935a799bf39dd6892ff7 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 26 Jun 2025 15:52:24 -0400 Subject: [PATCH] EquicordHelper: Better Description --- src/equicordplugins/equicordHelper/index.tsx | 13 +++++++++++-- src/equicordplugins/equicordHelper/native.ts | 5 +++-- src/main/csp/index.ts | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/equicordplugins/equicordHelper/index.tsx b/src/equicordplugins/equicordHelper/index.tsx index 08db2e99..93a814f6 100644 --- a/src/equicordplugins/equicordHelper/index.tsx +++ b/src/equicordplugins/equicordHelper/index.tsx @@ -43,8 +43,17 @@ export default definePlugin({ description: "Fixes some misc issues with discord", authors: [EquicordDevs.thororen, EquicordDevs.nyx], settingsAboutComponent: () => <> - - This Plugin is used for fixing misc issues with discord such as some crashes + + This plugin was created to allow us as the Equicord Team & Contributors + to fix miscellaneous issues Discord may run into or cause. +
+ This includes but is not limited to: +
+ - Unknown Resolution/FPS Fixed? +
+ - Whitelists all domains in CSP +
+ - Option to hide Clan Badges
, settings, diff --git a/src/equicordplugins/equicordHelper/native.ts b/src/equicordplugins/equicordHelper/native.ts index 9b72dc27..14a85ad5 100644 --- a/src/equicordplugins/equicordHelper/native.ts +++ b/src/equicordplugins/equicordHelper/native.ts @@ -4,6 +4,7 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ -import { CspPolicies, Src } from "@main/csp"; +import { CspPolicies, CSPSrc } from "@main/csp"; -CspPolicies["*"] = Src; +// Allow all domains to have the permissions from CSPSrc +CspPolicies["*"] = CSPSrc; diff --git a/src/main/csp/index.ts b/src/main/csp/index.ts index 21949e0a..c3fb8869 100644 --- a/src/main/csp/index.ts +++ b/src/main/csp/index.ts @@ -14,7 +14,7 @@ export const ImageSrc = [...ConnectSrc, "img-src"]; export const CssSrc = ["style-src", "font-src"]; export const ImageAndCssSrc = [...ImageSrc, ...CssSrc]; export const ImageScriptsAndCssSrc = [...ImageAndCssSrc, "script-src", "worker-src"]; -export const Src = ["style-src", "connect-src", "img-src", "frame-src", "font-src", "media-src", "worker-src"]; +export const CSPSrc = ["style-src", "connect-src", "img-src", "frame-src", "font-src", "media-src", "worker-src"]; // Plugins can whitelist their own domains by importing this object in their native.ts // script and just adding to it. But generally, you should just edit this file instead