aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--public/_locales/en/messages.json14
-rw-r--r--src/content.ts11
2 files changed, 16 insertions, 9 deletions
diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json
index 1ad9b1f2..2da08151 100644
--- a/public/_locales/en/messages.json
+++ b/public/_locales/en/messages.json
@@ -654,7 +654,17 @@
"categoryUpdate2": {
"message": "Open the options to skip intros, outros, merch, etc."
},
- "help": {
- "message": "Help"
+ "experimentUnlistedTitle": {
+ "message": "Help prevent this from disappearing"
+ },
+ "experimentUnlistedText": {
+ "message": "This video is detected as unlisted and uploaded before 2017\nOld unlisted videos are being set to private soon\nWe are collecting *public* videos to back up\nWould you like anonymously to submit this video?"
+ },
+ "experiementOptOut": {
+ "message": "Opt-out of all future experiments",
+ "description": "This is used in a popup about a new experiment to get a list of unlisted videos to back up since all unlisted videos uploaded before 2017 will be set to private."
+ },
+ "hideForever": {
+ "message": "Hide forever"
}
}
diff --git a/src/content.ts b/src/content.ts
index 5a7286d7..d0a1def1 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -893,14 +893,11 @@ async function unlistedCheck() {
if (isUnlisted && isOld && isHighViews) {
// Ask if they want to submit this videoID
const notice = new GenericNotice(skipNoticeContentContainer, "unlistedWarning", {
- title: "Help prevent this from disappearing",
- textBoxes: ("This video is detected as unlisted and uploaded before 2017\n"
- + "Old unlisted videos are being set to private soon\n"
- + "We are collecting *public* videos to back up\n"
- + "Would you like anonymously to submit this video?").split("\n"),
+ title: chrome.i18n.getMessage("experimentUnlistedTitle"),
+ textBoxes: chrome.i18n.getMessage("experimentUnlistedText").split("\n"),
buttons: [
{
- name: "Opt-out of all future experiments",
+ name: chrome.i18n.getMessage("experiementOptOut"),
listener: () => {
Config.config.allowExpirements = false;
@@ -908,7 +905,7 @@ async function unlistedCheck() {
}
},
{
- name: "Never show this",
+ name: chrome.i18n.getMessage("hideForever"),
listener: () => {
Config.config.askAboutUnlistedVideos = false;