This is prolly the most insane way todo it #1
1 changed files with 2 additions and 1 deletions
|
@ -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], "*");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue