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