mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-22 05:08:27 +00:00
Merge branch 'synzr-current' into current
This commit is contained in:
commit
77c2306369
@ -292,12 +292,13 @@ function checkbox(action) {
|
|||||||
case "reduceTransparency": eid("cobalt-body").classList.toggle('no-transparency'); break;
|
case "reduceTransparency": eid("cobalt-body").classList.toggle('no-transparency'); break;
|
||||||
case "disableAnimations": eid("cobalt-body").classList.toggle('no-animation'); break;
|
case "disableAnimations": eid("cobalt-body").classList.toggle('no-animation'); break;
|
||||||
case "wukkoDragonEmoji":
|
case "wukkoDragonEmoji":
|
||||||
for (const emoji of document.getElementsByClassName("emoji"))
|
document.getElementsByClassName("emoji").forEach((emoji) => {
|
||||||
if (emoji.attributes.src.value.match(/emoji\/dragon_face(?:_wukko)?\.svg/) !== null)
|
if (emoji.attributes.src.value.match(/emoji\/dragon_face(?:_wukko)?\.svg/) === null)
|
||||||
if (sGet("wukkoDragonEmoji") === "true")
|
return;
|
||||||
emoji.attributes.src.value = "emoji/dragon_face_wukko.svg";
|
emoji.attributes.src.value = sGet("wukkoDragonEmoji") === "true"
|
||||||
else
|
? "emoji/dragon_face_wukko.svg"
|
||||||
emoji.attributes.src.value = "emoji/dragon_face.svg";
|
: "emoji/dragon_face.svg";
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
action === "disableChangelog" && sGet(action) === "true" ? notificationCheck("disable") : notificationCheck();
|
action === "disableChangelog" && sGet(action) === "true" ? notificationCheck("disable") : notificationCheck();
|
||||||
@ -554,12 +555,13 @@ function loadSettings() {
|
|||||||
eid("downloadPopup").checked = true;
|
eid("downloadPopup").checked = true;
|
||||||
if (sGet("wukkoDragonEmoji") === "true")
|
if (sGet("wukkoDragonEmoji") === "true")
|
||||||
eid("wukkoDragonEmoji").checked = true;
|
eid("wukkoDragonEmoji").checked = true;
|
||||||
for (const emoji of document.getElementsByClassName("emoji"))
|
document.getElementsByClassName("emoji").forEach((emoji) => {
|
||||||
if (emoji.attributes.src.value.match(/emoji\/dragon_face(?:_wukko)?\.svg/) !== null)
|
if (emoji.attributes.src.value.match(/emoji\/dragon_face(?:_wukko)?\.svg/) === null)
|
||||||
if (sGet("wukkoDragonEmoji") === "true")
|
return;
|
||||||
emoji.attributes.src.value = "emoji/dragon_face_wukko.svg";
|
emoji.attributes.src.value = sGet("wukkoDragonEmoji") === "true"
|
||||||
else
|
? "emoji/dragon_face_wukko.svg"
|
||||||
emoji.attributes.src.value = "emoji/dragon_face.svg";
|
: "emoji/dragon_face.svg";
|
||||||
|
});
|
||||||
if (sGet("reduceTransparency") === "true" || isOldFirefox)
|
if (sGet("reduceTransparency") === "true" || isOldFirefox)
|
||||||
eid("cobalt-body").classList.add('no-transparency');
|
eid("cobalt-body").classList.add('no-transparency');
|
||||||
if (sGet("disableAnimations") === "true")
|
if (sGet("disableAnimations") === "true")
|
||||||
|
Loading…
Reference in New Issue
Block a user