This is prolly the most insane way todo it #1

Merged
nin0 merged 1 commit from KrstlSkll69/spotifyAddToQueue.desktop:main into main 2025-05-24 15:05:23 -04:00

View file

@ -21,9 +21,10 @@ app.on("browser-window-created", (_, win) => {
const addToQueueButton = document.createElement("button");
Object.assign(addToQueueButton.style, {
position: "relative",
top: "16px",
top: "11px",
left: "0px"
});
addToQueueButton.classList.add('gIjhme');
addToQueueButton.title = "Add to queue";
addToQueueButton.addEventListener("click", () => {
window.top.postMessage("vc-spotifyaddtoqueue__" + location.href.match(/https:\\/\\/open\\.spotify.com\\/embed\\/track\\/([a-zA-Z0-9]{0,200})\\?/ )[1], "*");