add about message again

This commit is contained in:
Malte Jürgens 2022-10-25 20:25:47 +02:00
parent 9eae8bbe4f
commit 9d9e57df1e
No known key found for this signature in database
GPG Key ID: D29FBD5F93C0CFC3
1 changed files with 22 additions and 22 deletions

View File

@ -131,28 +131,28 @@ setInterval(() => {
} }
// Add about text in settings // Add about text in settings
// if ( if (
// document.getElementsByClassName("dirscordScreenaudioAboutText").length == 0 document.getElementsByClassName("dirscordScreenaudioAboutText").length == 0
// ) { ) {
// for (const el of document.getElementsByClassName("info-3pQQBb")) { for (const el of document.getElementsByClassName("info-3pQQBb")) {
// let aboutEl; let aboutEl;
// if (window.discordScreenaudioKXMLGUI) { if (window.discordScreenaudioKXMLGUI) {
// aboutEl = document.createElement("a"); aboutEl = document.createElement("a");
// aboutEl.addEventListener("click", () => { aboutEl.addEventListener("click", () => {
// console.log("!discord-screenaudio-about"); console.log("!discord-screenaudio-about");
// }); });
// } else { } else {
// aboutEl = document.createElement("div"); aboutEl = document.createElement("div");
// } }
// aboutEl.innerText = `discord-screenaudio ${window.discordScreenaudioVersion}`; aboutEl.innerText = `discord-screenaudio ${window.discordScreenaudioVersion}`;
// aboutEl.style.fontSize = "12px"; aboutEl.style.fontSize = "12px";
// aboutEl.style.color = "var(--text-muted)"; aboutEl.style.color = "var(--text-muted)";
// aboutEl.style.textTransform = "none"; aboutEl.style.textTransform = "none";
// aboutEl.classList.add("dirscordScreenaudioAboutText"); aboutEl.classList.add("dirscordScreenaudioAboutText");
// aboutEl.style.cursor = "pointer"; aboutEl.style.cursor = "pointer";
// el.appendChild(aboutEl); el.appendChild(aboutEl);
// } }
// } }
// Remove stream settings if stream is active // Remove stream settings if stream is active
document.getElementById("manage-streams-change-windows")?.remove(); document.getElementById("manage-streams-change-windows")?.remove();