`
+ }
+ break;
+ default:
+ break;
+ }
+ } else {
+ if (type == "imagePicker") {
+ eid("imagepicker-download").href = '/';
+ eid("imagepicker-holder").innerHTML = ''
+ }
}
+ eid("popup-backdrop").style.visibility = vis(action);
+ eid(`popup-${type}`).style.visibility = vis(action);
}
function changeSwitcher(li, b) {
if (b) {
@@ -194,6 +212,7 @@ function checkbox(action) {
if (action == "alwaysVisibleButton") button();
if (action == "disableClipboardButton") eid("pasteFromClipboard").style.display = "flex";
}
+ sGet(action) == "true" ? notificationCheck("disable") : notificationCheck();
}
function updateToggle(toggl, state) {
switch(state) {
@@ -359,11 +378,7 @@ window.onload = () => {
eid("cobalt-main-box").style.visibility = 'visible';
eid("footer").style.visibility = 'visible';
eid("url-input-area").value = "";
- if (!sGet("seenAbout")) {
- popup('about', 1, "about");
- } else if (sGet("changelogStatus") != `${version}` && sGet("disableChangelog") != "true") {
- popup('about', 1, "changelog");
- }
+ notificationCheck();
if (isIOS) sSet("downloadPopup", "true");
let urlQuery = new URLSearchParams(window.location.search).get("u");
if (urlQuery !== null) {
diff --git a/src/localization/languages/en.json b/src/localization/languages/en.json
index 9d8dd327..19033769 100644
--- a/src/localization/languages/en.json
+++ b/src/localization/languages/en.json
@@ -80,7 +80,6 @@
"SettingsAudioFormatBest": "best",
"SettingsAudioFormatDescription": "when best format is selected, you get audio in best quality available, because audio is kept in its original format. if you select anything other than that, you'll get a slightly compressed file.",
"Keyphrase": "save what you love",
- "SettingsDisableChangelogOnUpdate": "don't show changelog after major updates",
"SettingsRemoveWatermark": "disable watermark",
"ErrorPopupCloseButton": "got it",
"ErrorLengthAudioConvert": "current length limit for audio conversion is {s} minutes. pick \"best\" format if you want to avoid limitations.",
@@ -101,6 +100,7 @@
"ChangelogPressToExpand": "press to load",
"Miscellaneous": "miscellaneous",
"ModeToggleAuto": "auto mode",
- "ModeToggleAudio": "audio mode"
+ "ModeToggleAudio": "audio mode",
+ "SettingsDisableNotifications": "disable in-app notifications"
}
}
diff --git a/src/localization/languages/ru.json b/src/localization/languages/ru.json
index 3b16065a..2590d361 100644
--- a/src/localization/languages/ru.json
+++ b/src/localization/languages/ru.json
@@ -81,7 +81,6 @@
"SettingsAudioFormatBest": "лучший",
"SettingsAudioFormatDescription": "когда выбран \"лучший\" формат, ты получишь аудио максимально возможного качества, так как оно останется в оригинальном формате. если же выбрано что-то другое, то аудио будет немного сжато.",
"Keyphrase": "сохраняй то, что любишь",
- "SettingsDisableChangelogOnUpdate": "не показывать изменения после обновлений",
"SettingsRemoveWatermark": "убрать ватермарку",
"ErrorPopupCloseButton": "ясно",
"ModeToggle": "режим",
@@ -104,6 +103,7 @@
"ChangelogPressToExpand": "нажми, чтобы загрузить",
"Miscellaneous": "разное",
"ModeToggleAuto": "авто режим",
- "ModeToggleAudio": "аудио режим"
+ "ModeToggleAudio": "аудио режим",
+ "SettingsDisableNotifications": "не показывать уведомления"
}
}
diff --git a/src/modules/changelog/changelog.json b/src/modules/changelog/changelog.json
index 496986cc..791a428a 100644
--- a/src/modules/changelog/changelog.json
+++ b/src/modules/changelog/changelog.json
@@ -1,10 +1,12 @@
{
"current": {
+ "title": "less disturbance (3.6.2)",
+ "content": "changelog no longer annoys you after a major update! this action has been replaced with a notification dot. if you see a red dot, then there's something new.\n\nyour old setting that disabled the changelog popup now applies to notifications.\n\nnew users will see a notification dot instead of an about popup, too. this was mostly done to prevent complications if your browser is set up to clean local storage when you close it.\n\nother changes:\n- popups are now a bit wider, just so more content fits at once.\n- better interface scaling.\n- code is a bit cleaner now."
+ },
+ "history": [{
"title": "improvements all around! (3.6)",
"content": "- download mode switcher is moving places, it's now right next to link input area.\n- smart mode has been renamed to auto mode, because this name is easier to understand.\n- all spacings in ui have been evened out. no more eye strain.\n- added support for twitter /video/1 links\n- clipboard button exception has been redone to prepare for adoption of readtext clipboard api in firefox.\n- cobalt is now using different tiktok api endpoint, because previous one got killed, just like the one before.\n- \"other\" settings tab has been cleaned up."
- },
- "DisableIfYouWant": "\n\nif you don't want to see this popup after every major update, you can disable it in settings > other.",
- "history": [{
+ }, {
"title": "tiktok support is back :D (3.5.4)",
"content": "you can download videos, sounds, and images from tiktok again!\nhuge thank you to @minzique for finding another api endpoint that works."
}, {
diff --git a/src/modules/pageRender/elements.js b/src/modules/pageRender/elements.js
index ef07d872..f1c263db 100644
--- a/src/modules/pageRender/elements.js
+++ b/src/modules/pageRender/elements.js
@@ -33,7 +33,7 @@ export function checkbox(action, text, aria, paddingType) {
break;
}
return ``
}
@@ -119,13 +119,13 @@ export function footerButtons(obj) {
for (let i = 0; i < obj.length; i++) {
switch (obj[i]["type"]) {
case "toggle":
- items += ``;
+ items += ``;
break;
case "action":
- items += ``;
+ items += ``;
break;
case "popup":
- items += ``;
+ items += ``;
i++;
break;
}
diff --git a/src/modules/pageRender/page.js b/src/modules/pageRender/page.js
index 6920b093..b47775cc 100644
--- a/src/modules/pageRender/page.js
+++ b/src/modules/pageRender/page.js
@@ -107,7 +107,7 @@ export default function(obj) {
classes: ["changelog-subtitle"],
nopadding: true
}, {
- text: changelogManager("content") + changelogManager("DisableIfYouWant")
+ text: changelogManager("content")
}, {
text: `