diff --git a/src/front/cobalt.js b/src/front/cobalt.js index 9d022e64..ad2e9e59 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -22,7 +22,6 @@ const switchers = { }; const checkboxes = [ "alwaysVisibleButton", - "disableChangelog", "downloadPopup", "fullTikTokAudio", "muteAudio", @@ -171,17 +170,21 @@ function notificationCheck(type) { default: changed = false; } - if (changed && sGet("changelogStatus") === `${version}` || type === "disable") { + if (changed && sGet("changelogStatus") === `${version}`) { setTimeout(() => { eid("about-footer").innerHTML = eid("about-footer").innerHTML.replace(notification, ''); eid("tab-button-about-changelog").innerHTML = eid("tab-button-about-changelog").innerHTML.replace(notification, '') }, 900) } - if (sGet("disableChangelog") !== "true") { - if (!sGet("seenAbout") && !eid("about-footer").innerHTML.includes(notification)) eid("about-footer").innerHTML = `${notification}${eid("about-footer").innerHTML}`; - if (sGet("changelogStatus") !== `${version}`) { - if (!eid("about-footer").innerHTML.includes(notification)) eid("about-footer").innerHTML = `${notification}${eid("about-footer").innerHTML}`; - if (!eid("tab-button-about-changelog").innerHTML.includes(notification)) eid("tab-button-about-changelog").innerHTML = `${notification}${eid("tab-button-about-changelog").innerHTML}`; + if (!sGet("seenAbout") && !eid("about-footer").innerHTML.includes(notification)) { + eid("about-footer").innerHTML = `${notification}${eid("about-footer").innerHTML}`; + } + if (sGet("changelogStatus") !== `${version}`) { + if (!eid("about-footer").innerHTML.includes(notification)) { + eid("about-footer").innerHTML = `${notification}${eid("about-footer").innerHTML}`; + } + if (!eid("tab-button-about-changelog").innerHTML.includes(notification)) { + eid("tab-button-about-changelog").innerHTML = `${notification}${eid("tab-button-about-changelog").innerHTML}`; } } } @@ -298,7 +301,6 @@ function checkbox(action) { case "reduceTransparency": eid("cobalt-body").classList.toggle('no-transparency'); break; case "disableAnimations": eid("cobalt-body").classList.toggle('no-animation'); break; } - action === "disableChangelog" && sGet(action) === "true" ? notificationCheck("disable") : notificationCheck(); } function changeButton(type, text) { switch (type) { diff --git a/src/localization/languages/en.json b/src/localization/languages/en.json index 8450e11a..546c2841 100644 --- a/src/localization/languages/en.json +++ b/src/localization/languages/en.json @@ -80,7 +80,6 @@ "Miscellaneous": "miscellaneous", "ModeToggleAuto": "auto", "ModeToggleAudio": "audio", - "SettingsDisableNotifications": "hide notifications", "MediaPickerTitle": "pick what to save", "MediaPickerExplanationPC": "click or right click to download what you want.", "MediaPickerExplanationPhone": "press or press and hold to download what you want.", diff --git a/src/localization/languages/ru.json b/src/localization/languages/ru.json index a013ef52..8f66b5b0 100644 --- a/src/localization/languages/ru.json +++ b/src/localization/languages/ru.json @@ -80,7 +80,6 @@ "Miscellaneous": "разное", "ModeToggleAuto": "авто", "ModeToggleAudio": "аудио", - "SettingsDisableNotifications": "cкрыть уведомления", "MediaPickerTitle": "выбери, что сохранить", "MediaPickerExplanationPC": "кликни то, что хочешь скачать. также можно скачать правой кнопки мыши.", "MediaPickerExplanationPhone": "нажми, или нажми и удерживай, чтобы скачать.", diff --git a/src/modules/pageRender/page.js b/src/modules/pageRender/page.js index 3a8b6c6d..58bb3a97 100644 --- a/src/modules/pageRender/page.js +++ b/src/modules/pageRender/page.js @@ -523,10 +523,6 @@ export default function(obj) { }, { action: "disableMetadata", name: t("SettingsDisableMetadata") - }, { - action: "disableChangelog", - name: t("SettingsDisableNotifications"), - padding: "no-margin" }]) }) }]