#SpotiMbed (Better Spotify Embeds)

1 messages · Page 1 of 1 (latest)

rugged gulch
fading prawn
#

holy shit spotimbed update

desert vine
#

asd

compact seal
rugged gulch
#

Send ur debug

#

@compact seal

compact seal
rugged gulch
#

Why would I care about a bug that happens in the plugin settings when the plugin is disabled

compact seal
#

idk

rugged gulch
#

The fix is to enable the plugin you installed

desert vine
#
From 9ed79859424350ce191d26b748711dc648399633 Mon Sep 17 00:00:00 2001
From: sadan <117494111+sadan4@users.noreply.github.com>
Date: Fri, 15 Aug 2025 16:02:21 -0400
Subject: [PATCH] fix settings

---
 index.tsx | 29 +++++++++++++++++++++++++----
 1 file changed, 25 insertions(+), 4 deletions(-)

diff --git a/index.tsx b/index.tsx
index d0176e7..2c3e99d 100644
--- a/index.tsx
+++ b/index.tsx
@@ -10,12 +10,18 @@ import ErrorBoundary from "@components/ErrorBoundary";
 import { Devs } from "@utils/constants";
 import definePlugin from "@utils/types";
 import type { Embed, Message } from "@vencord/discord-types";
+import { Text } from "@webpack/common";
 
 import { createSpotimbed, Spotimbed, SpotimbedProps } from "./components/Embed";
 import { settings } from "./settings";
 import { ResourceType } from "./types";
 import { createEmbedData, getEmbeddableLinks } from "./utils/ast";
 
+// Use a variable instead of Vencord.Settings.plugins.name.enabled
+// because that will get toggled before the user reloads vencord
+// but the start function is only run when the plugin is loaded
+let enabled = false;
+
 export default definePlugin({
     name: "SpotiMbed",
     description: "Makes Spotify embeds reliable and actually useable",
@@ -60,10 +66,25 @@ export default definePlugin({
     ],
     settings,
 
-    settingsAboutComponent: ({ tempSettings }: { tempSettings?: SpotimbedProps["tempSettings"]; }) => <ErrorBoundary>
-        <Spotimbed type={ResourceType.Track} id="6a4z5B7vOzTLYTnokxuDXo" tempSettings={tempSettings} />
-        <Spotimbed type={ResourceType.Album} id="6MbBpKe8dZYYqOq0AxpQps" tempSettings={tempSettings} />
-    </ErrorBoundary>,
+    start() {
+        enabled = true;
+    },
+
+    settingsAboutComponent: ErrorBoundary.wrap(({ tempSettings }: { tempSettings?: SpotimbedProps["tempSettings"]; }) => {
+        if (!enabled) {
+            return (
+                <Text variant="text-md/normal">
+                    To see a preview please enable the plugin and reload vencord.
+                </Text>
+            );
+        }
+        return (
+            <>
+                <Spotimbed type={ResourceType.Track} id="6a4z5B7vOzTLYTnokxuDXo" tempSettings={tempSettings} />
+                <Spotimbed type={ResourceType.Album} id="6MbBpKe8dZYYqOq0AxpQps" tempSettings={tempSettings} />
+            </>
+        );
+    }),
 
     // exports
     createSpotimbed,
-- 
2.50.1

@rugged gulch

compact seal
rugged gulch
compact seal
#

vesktop

rugged gulch
#

oh wait yea that origin isnt on it

#

i didnt see that origin when testing

#

i'll fix and add the thing above while im at it in a sec

compact seal
#

okay

#

thanks

long thistle
rugged gulch
#

that ragebaited me enough to get me out of bed yesterday so it was helpful in some way

rugged gulch
desert vine
#

Til

desert vine
#

@rugged gulch jumpscare on discord dark mode

#

(happens without my theme as well)

#

guh

rugged gulch
desert vine
rugged gulch
#

color style*

desert vine
rugged gulch
#

ah

#

ah yea i fixed this i in update

#

oh i was wondering what ak and fa are and how many cdn urls there were

#

i think its prob akamai and fastly

desert vine
#

im up to date i think

rugged gulch
#

have u rebuilt and closed and reopened

desert vine
#

yeah, twice

rugged gulch
#

weird cus if u look in ur native.ts

desert vine
#

oh wait

rugged gulch
#

it has those domains doesnt it

desert vine
#

let me check smth

rugged gulch
#

wait its expecting for the img-src directive

#

not connect-src

desert vine
#

yeah

#

thats what im trying

rugged gulch
#

why

#

ohh is the connect-src for background-image

#

and img-src is for new Image

desert vine
#

@rugged gulch i gave everything img-src and no longer get CSP errors, but it's still pure white

desert vine
rugged gulch
#

no like

#

spotimbed settings

desert vine
rugged gulch
#

prob pastel since its defualt

desert vine
#

yeah, its better now

rugged gulch
#

it looks like ur text contrast iss working now tho

desert vine
rugged gulch
#

what client are u on cus i dont get csp errors

desert vine
#
From a2d81183234844527c7629fd3f731fed2a93ba5d Mon Sep 17 00:00:00 2001
From: sadan <117494111+sadan4@users.noreply.github.com>
Date: Mon, 18 Aug 2025 00:18:50 -0400
Subject: [PATCH] fix csp

---
 native.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/native.ts b/native.ts
index 163e2ec..69c92a7 100644
--- a/native.ts
+++ b/native.ts
@@ -7,7 +7,7 @@
 import { CspPolicies } from "@main/csp";
 
 CspPolicies["p.scdn.co"] = ["media-src"];
-CspPolicies["i.scdn.co"] = ["connect-src"];
-CspPolicies["mosaic.scdn.co"] = ["connect-src"];
-CspPolicies["image-cdn-fa.spotifycdn.com"] = ["connect-src"];
-CspPolicies["image-cdn-ak.spotifycdn.com"] = ["connect-src"];
+CspPolicies["i.scdn.co"] = ["connect-src", "img-src"];
+CspPolicies["mosaic.scdn.co"] = ["connect-src", "img-src"];
+CspPolicies["image-cdn-fa.spotifycdn.com"] = ["connect-src", "img-src"];
+CspPolicies["image-cdn-ak.spotifycdn.com"] = ["connect-src", "img-src"];
-- 
2.50.1

rugged gulch
#

ok pushed

rugged gulch
#

it was a PR but i think vee never merge cus its so big

#

its kinda like a large maintenance overhead

#

if i decide not to work on it / update / fix it it'll be their job to

desert vine
#

@rugged gulch

rugged gulch
#

imma kills omeone

desert vine
#

(build with --dev --reporter)

#

i'm not sure how finds order with replacements, but this is probably the reason

rugged gulch
#

ah ok

#

makes sense

#

pushed, changed the patch find

#

finding by the method property that im actually patching since that cant rly be wrapped

desert vine
#

did i get ghost pinged here

rugged gulch
#

prob not

#

might have accidentally alt clicked

#

also @compact seal i forgot to push those new domains but i just pushed them

desert vine
#

consider making the album text selectable

desert vine
#

@rugged gulch

rugged gulch
#

Nooo

#

Okay

trail willow
#

is it broken?
update: yeah seems like it is

desert vine
#
From 1ccedd5124da99884b68ec1b5a71e7797fe4230a Mon Sep 17 00:00:00 2001
From: sadan <117494111+sadan4@users.noreply.github.com>
Date: Wed, 4 Feb 2026 18:32:52 -0500
Subject: [PATCH] fix finds

---
 index.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.tsx b/index.tsx
index 0248a6b..268350c 100644
--- a/index.tsx
+++ b/index.tsx
@@ -23,7 +23,7 @@ export default definePlugin({
     authors: [Devs.Vap],
     patches: [
         {
-            find: "}renderEmbeds(",
+            find: ";renderEmbeds(",
             replacement: {
                 // .renderEmbeds = function(message) { ... }
                 match: /\brenderEmbeds\((\i)\)\{/,
@@ -32,7 +32,7 @@ export default definePlugin({
             }
         },
         {
-            find: ".embedSpotify",
+            find: '!["track","playlist",',
             replacement: {
                 // "Spotify" === embed.provider.name ? <DiscordEmbed embed={embed} /> : ...
                 match: /let\{className:[^;]{0,50}embed:[^;]{0,50}=(\i);/,
-- 
2.52.0

#

@rugged gulch

rugged gulch
#

wait i forgot

low sphinx
rugged gulch
#

Still no

rugged gulch
low sphinx
rugged gulch
#

still broken ill fix

desert vine
#

@rugged gulch

#

INSANE FIND

rugged gulch
desert vine
#

doesn't vencord re-export the scrollers

rugged gulch
#

I'm unsure

desert vine
#

(It does)

rugged gulch
#

All that code is years old

#

I'm p sure

desert vine
#

@rugged gulch everything exploded with new bundler changes

#

lmk if you plan on mantaining this/want help with fixing things

rugged gulch
#

gay

rugged gulch
desert vine
desert vine
#

ill fix and send aptches

#

?remind 14hr fix

stone muskBOT
#

Alright @desert vine, in 14 hours: fix