From 2a809e163e78e3c89241b0dd0593a665cc63cde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Thu, 26 Jan 2023 00:45:14 +0100 Subject: [PATCH] fix class names for tray settings --- assets/userscript.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/assets/userscript.js b/assets/userscript.js index 5a5616f..1b2cd8f 100644 --- a/assets/userscript.js +++ b/assets/userscript.js @@ -88,22 +88,22 @@ function createButton(text, onClick) { function createSwitch(text, enabled, onClick) { const container = document.createElement("div"); container.style.marginBottom = "20px"; - container.className = "labelRow-2jl9gK"; + container.className = "labelRow-NnoUIp"; const label = document.createElement("label"); label.innerText = text; - label.className = "title-2dsDLn"; + label.className = "title-2yADjX"; container.appendChild(label); const svg = document.createElement("div"); container.appendChild(svg); function setSvgDisabled() { - svg.innerHTML = `
`; + svg.innerHTML = `
`; } function setSvgEnabled() { - svg.innerHTML = `
`; + svg.innerHTML = `
`; } function updateSvg() { @@ -272,7 +272,7 @@ setInterval(() => { ); if (!discordScreenaudioSettings) { const firstDivider = accountTab.getElementsByClassName( - "divider-_0um2u marginTop40-Q4o1tS" + "divider-3nqZNm marginTop40-Q4o1tS" )[0]; if (firstDivider) { const section = document.createElement("div"); @@ -281,7 +281,7 @@ setInterval(() => { const title = document.createElement("h2"); title.className = - "h1-34Txb0 title-3hptVQ defaultColor-2cKwKo defaultMarginh1-EURXsm"; + "h1-3iMExa title-lXcL8p defaultColor-3Olr-9 defaultMarginh1-1UYutH"; title.innerText = "discord-screenaudio"; section.appendChild(title); @@ -303,7 +303,7 @@ setInterval(() => { ); const divider = document.createElement("div"); - divider.className = "divider-_0um2u marginTop40-Q4o1tS"; + divider.className = "divider-3nqZNm marginTop40-Q4o1tS"; firstDivider.after(section); section.after(divider);