${loc.DataTransferError}`
+ }
+ }
+ }
+ loadSettings();
+ detectColorScheme();
+ popup("migration", 1);
+ }
+ window.history.replaceState(null, '', window.location.pathname);
+
+ notificationCheck();
}
eid("url-input-area").addEventListener("keydown", (e) => {
button();
diff --git a/src/front/emoji/3d/cat_grin.svg b/src/front/emoji/3d/cat_grin.svg
new file mode 100644
index 00000000..be6e29d0
--- /dev/null
+++ b/src/front/emoji/3d/cat_grin.svg
@@ -0,0 +1,345 @@
+
\ No newline at end of file
diff --git a/src/front/emoji/cat_grin.svg b/src/front/emoji/cat_grin.svg
new file mode 100644
index 00000000..4b7cbb06
--- /dev/null
+++ b/src/front/emoji/cat_grin.svg
@@ -0,0 +1,13 @@
+
\ No newline at end of file
diff --git a/src/front/updateBanners/newdomain.webp b/src/front/updateBanners/newdomain.webp
new file mode 100644
index 00000000..256784a2
Binary files /dev/null and b/src/front/updateBanners/newdomain.webp differ
diff --git a/src/localization/languages/en.json b/src/localization/languages/en.json
index 3be93dbc..7025f222 100644
--- a/src/localization/languages/en.json
+++ b/src/localization/languages/en.json
@@ -138,6 +138,11 @@
"FairUse": "cobalt is a tool for easing content downloads from internet and takes zero liability. you are responsible for what you download, how you use and distribute that content.\n\ncobalt does not log any info about you, it's impossible for me to snitch on you, but please be mindful when using content of others and always credit original creators!\n\nwhen used in education purposes (lecture, homework, etc) please attach the source link.\n\nfair use and credits benefit everyone.",
"UrgentFeatureUpdate71": "more supported services!",
"UrgentThanks": "thank you for support!",
- "SettingsDisableMetadata": "don't add metadata"
+ "SettingsDisableMetadata": "don't add metadata",
+ "UrgentNewDomain": "new domain, same cobalt",
+ "NewDomainWelcomeTitle": "hey there!",
+ "NewDomainWelcome": "cobalt is moving! same features, same owner, simply a more rememberable domain. and still no ads.\n\ncobalt.tools is the new main domain, aka where you are now. make sure to update your bookmarks and reinstall the web app!",
+ "DataTransferSuccess": "btw, your settings have been transferred automatically :)",
+ "DataTransferError": "something went wrong when transferring your preferences. you'll have to open settings and configure cobalt by hand."
}
}
diff --git a/src/localization/languages/ru.json b/src/localization/languages/ru.json
index 333305c2..1bb67579 100644
--- a/src/localization/languages/ru.json
+++ b/src/localization/languages/ru.json
@@ -139,6 +139,11 @@
"FairUse": "кобальт - это инструмент для облегчения скачивания контента из интернета, и он не несёт никакой ответственности. ты несёшь ответственность за то, что скачиваешь, как используешь и распространяешь скачанный контент.\n\nкобальт не собирает никакой информации о тебе, и не может донести на тебя, но, пожалуйста, будь сознателен при использовании чужого контента и всегда указывай авторов!\n\nпри использовании в образовательных целях (лекции, домашние задания и т.д.), пожалуйста, прикладывай ссылку на источник.\n\nчестное использование и указание авторства выгодно всем.",
"UrgentFeatureUpdate71": "расширение поддержки сервисов!",
"UrgentThanks": "спасибо за поддержку!",
- "SettingsDisableMetadata": "не добавлять метаданные"
+ "SettingsDisableMetadata": "не добавлять метаданные",
+ "UrgentNewDomain": "новый домен, тот же кобальт",
+ "NewDomainWelcomeTitle": "привет!",
+ "NewDomainWelcome": "кобальт переезжает! те же функции, тот же владелец, просто более запоминающийся домен. по-прежнему без рекламы.\n\ncobalt.tools - новый основной домен, т.е. где ты сейчас находишься. не забудь обновить закладки и переустановить веб-приложение!",
+ "DataTransferSuccess": "кстати, твои настройки были перенесены автоматически :)",
+ "DataTransferError": "при переносе настроек что-то пошло не так. придётся зайти в настройки и настроить кобальт вручную."
}
}
diff --git a/src/modules/changelog/changelog.json b/src/modules/changelog/changelog.json
index c452ab9d..57363b3e 100644
--- a/src/modules/changelog/changelog.json
+++ b/src/modules/changelog/changelog.json
@@ -1,5 +1,16 @@
{
"current": {
+ "version": "7.4",
+ "date": "September 9, 2023",
+ "title": "new domain, what's coming in future, bug fixes, and more!",
+ "banner": {
+ "file": "newdomain.webp",
+ "width": 960,
+ "height": 540
+ },
+ "content": "cobalt is finally moving to its own domain! many of you have been anticipating this, and many kept forgetting the link due to how cryptic it was.\n\nwell, worry no more - cobalt.tools is here.\n\nif you haven't yet, open co.wukko.me to transfer your settings here! no additional action from you is required. just open the old link and cobalt will do everything for you :)\n\nmake sure to update your bookmarks and reinstall the web app!\n\nhere's what domain change means:\n*; still no ads, same owner, same features, same reliability. just a way more rememberable link (it's literally two words).\n*; cobalt.tools makes it clear that cobalt is a tool and that it's \"cobalt\", not \"wukko\".\n*; i can host various versions of cobalt on subdomains without links looking awkward.\n*; i can host cobalt-related websites without polluting my personal domain's dns (such as crowdin).\n*; i stand by same privacy policies (and in fact am using the same exact server as before).\n\nthe domain change is required for the future of cobalt.\n\nhere's what's coming soon:\n*; support for many top-requested sites, such as (but not limited to) twitch and niconico.\n*; education version of cobalt, as often requested by students and educators.\n*; major localization system upgrade, allowing for simpler community contributions.\n*; region-specific versions with 100% translations and tweaks.\n*; native clients for desktop and mobile (not sure about this one, i'm no superman).\n*; ...and more!\n\nnow, here's what's new in 7.4:\n*; tabs in popups now scroll to top on tab bar tap.\n*; padding across web app was tuned.\n*; (obviously) a migration agent. soon will be used for importing and exporting settings.\n*; some minor clean ups in codebase.\n\nif you want to help cobalt achieve goals listed above, consider donating! donations are the only way i can keep cobalt ad-less, powerful, (basically) limitless, and also 100% free.\n\nin fact, donations have helped me grow cobalt more than i've ever anticipated. just imagine how much better it will be in a year.\n\ngo to donations down below to find ways to donate!\n\nthank you for reading through all of this. i hope you enjoy this update and have a great day :D"
+ },
+ "history": [{
"version": "7.2 & 7.3",
"date": "September 6, 2023",
"title": "extended video length limit, metadata toggle, ui improvements, and more!",
@@ -9,8 +20,7 @@
"height": 280
},
"content": "this update gives cobalt a sharp look in chromium browsers and makes it even more useful than before. check out the full changelog below!\n\nservice improvements:\n*; increased video length limit from 3 hours to 5 hours. feel free to download lectures you need :)\n*; you can now disable file metadata in settings.\n*; fixed a bug which previously caused some downloads to end up being 0 bytes.\n\nui improvements:\n*; fixed clickable area for urgent notice (text on top).\n*; fixed blurry header in chrome.\n*; fixed blurry tab bar in chrome.\n*; fixed blurry switches in chrome.\n*; fixed weirdly rounded corners in popups.\n*; fixed 1px gap on edges of various elements in popup in chrome.\n*; fixed overscrolling in other settings tab on ios.\n*; fixed unexpected button highlight effect on phones.\n*; removed outdated fixes for tiny screens.\n\nother improvements:\n*; cobalt web & api start faster than before, additional preparation functions aren't unexpectedly run anymore.\n*; cobalt is now available as a docker package. check it out on github.\n\nthank you for being here. i hope you have a great day :D"
- },
- "history": [{
+ }, {
"version": "7.1",
"date": "August 20, 2023",
"title": "instagram, streamable, video metadata, and more!",
diff --git a/src/modules/emoji.js b/src/modules/emoji.js
index c019037a..068e6bdb 100644
--- a/src/modules/emoji.js
+++ b/src/modules/emoji.js
@@ -33,7 +33,8 @@ const names = {
"🔗": "link",
"⌨": "keyboard",
"📑": "boring_document",
- "🧮": "abacus"
+ "🧮": "abacus",
+ "😸": "cat_grin"
}
let sizing = {
18: 0.8,
diff --git a/src/modules/pageRender/elements.js b/src/modules/pageRender/elements.js
index a1940d5c..824814e6 100644
--- a/src/modules/pageRender/elements.js
+++ b/src/modules/pageRender/elements.js
@@ -238,3 +238,10 @@ export function keyboardShortcuts(arr) {
return base;
}
+export function webLoc(t, arr) {
+ let base = ``;
+ for (let i = 0; i < arr.length; i++) {
+ base += `${arr[i]}:` + "`" + t(arr[i]) + "`" + `,`
+ }
+ return `{${base}};`
+}
diff --git a/src/modules/pageRender/page.js b/src/modules/pageRender/page.js
index d73a8e08..006a8849 100644
--- a/src/modules/pageRender/page.js
+++ b/src/modules/pageRender/page.js
@@ -1,4 +1,4 @@
-import { checkbox, collapsibleList, explanation, footerButtons, multiPagePopup, popup, popupWithBottomButtons, sep, settingsCategory, switcher, socialLink, urgentNotice, keyboardShortcuts } from "./elements.js";
+import { checkbox, collapsibleList, explanation, footerButtons, multiPagePopup, popup, popupWithBottomButtons, sep, settingsCategory, switcher, socialLink, urgentNotice, keyboardShortcuts, webLoc } from "./elements.js";
import { services as s, authorInfo, version, repo, donations, supportedAudio } from "../config.js";
import { getCommitInfo } from "../sub/currentCommit.js";
import loc from "../../localization/manager.js";
@@ -75,7 +75,7 @@ export default function(obj) {
-
+
${multiPagePopup({
name: "about",
@@ -452,7 +452,7 @@ export default function(obj) {
padding: "no-margin"
}])
})
- }],
+ }]
})}
${popupWithBottomButtons({
name: "picker",
@@ -492,21 +492,35 @@ export default function(obj) {
buttonOnly: true,
classes: ["small"],
header: {
- closeAria: t('AccessibilityGoBack'),
title: t('TitlePopupError'),
emoji: emoji("😿", 78, 1, 1),
},
- body: ``,
+ body: ``,
buttonText: t('ErrorPopupCloseButton')
})}
+