From f57580a4ba9c3f59970d56f0d44c451d0bbe4cb8 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:02:15 -0500 Subject: [PATCH] Fix USRBG not showing up in VC --- src/equicordplugins/fullVcPfp/index.tsx | 3 +++ src/plugins/usrbg/index.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/equicordplugins/fullVcPfp/index.tsx b/src/equicordplugins/fullVcPfp/index.tsx index 6d50b43f..e0da2678 100644 --- a/src/equicordplugins/fullVcPfp/index.tsx +++ b/src/equicordplugins/fullVcPfp/index.tsx @@ -42,6 +42,9 @@ export default definePlugin({ if (Settings.plugins.USRBG.enabled && Settings.plugins.USRBG.voiceBackground) { const USRBG = (Vencord.Plugins.plugins.USRBG as unknown as iUSRBG); if (USRBG.userHasBackground(participantUserId)) { + document.querySelectorAll('[class*="background_"]').forEach(element => { + (element as HTMLElement).style.backgroundColor = "transparent"; + }); return { backgroundImage: `url(${USRBG.getImageUrl(participantUserId)})`, backgroundSize: "cover", diff --git a/src/plugins/usrbg/index.tsx b/src/plugins/usrbg/index.tsx index 45176da6..8eae0b88 100644 --- a/src/plugins/usrbg/index.tsx +++ b/src/plugins/usrbg/index.tsx @@ -84,6 +84,9 @@ export default definePlugin({ getVoiceBackgroundStyles({ className, participantUserId }: any) { if (className.includes("tile_")) { if (this.userHasBackground(participantUserId)) { + document.querySelectorAll('[class*="background_"]').forEach(element => { + (element as HTMLElement).style.backgroundColor = "transparent"; + }); return { backgroundImage: `url(${this.getImageUrl(participantUserId)})`, backgroundSize: "cover",