From 4ddca93f0d9319c915b5fdad1f6745b6d1f093d8 Mon Sep 17 00:00:00 2001 From: avm99963 Date: Sat, 15 Aug 2020 18:22:34 +0200 Subject: [PATCH] Deprecate bulk duplicate option This feature is now enabled by default in the Community Console, so this commit removes the option which let users enable the feature manually. Change-Id: I57c5e20a446ee784b72018ca71735fd40fa31471 --- src/_locales/ca/messages.json | 28 ---------------------------- src/_locales/en/messages.json | 28 ---------------------------- src/_locales/es/messages.json | 28 ---------------------------- src/_locales/ru/messages.json | 28 ---------------------------- src/console_inject_start.js | 6 +----- src/options.html | 1 - src/options.js | 3 ++- 7 files changed, 3 insertions(+), 119 deletions(-) diff --git a/src/_locales/ca/messages.json b/src/_locales/ca/messages.json index 42487c3..a4c45e2 100644 --- a/src/_locales/ca/messages.json +++ b/src/_locales/ca/messages.json @@ -51,10 +51,6 @@ "message": "Mostra un enllaç \"historial de publicacions\" als perfils d'usuari.", "description": "Feature checkbox in the options page" }, - "options_batchduplicate": { - "message": "Afegeix l'opció per duplicar diversos fils alhora a la llista de fils de la Consola de la Comunitat.", - "description": "Feature checkbox in the options page" - }, "options_escalatethreads":{ "message": "Activa la flag enableEscalateThread de la Consola de la Comunitat.", "description": "Feature checkbox in the options page" @@ -82,29 +78,5 @@ "inject_previousposts": { "message": "Historial de publicacions", "description": "Link shown in a user profile (in TW and the Community Console) which points to a search showing the user's posts and messages" - }, - "inject_duplicatebtn": { - "message": "Duplicar fils", - "description": "Tooltip of the 'duplicate treads' icon shown when selecting multiple threads in the Community Console." - }, - "inject_duplicateinto": { - "message": "Duplicar a:", - "description": "Label for the text field in which the user has to enter the thread they want to duplicate into." - }, - "inject_duplicateinto_placeholder": { - "message": "Introdueix la URL de la Consola de la Comunitat", - "description": "Placeholder for the URL field." - }, - "inject_duplicate_cancel": { - "message": "Cancel·lar", - "description": "Button to cancel the duplication process." - }, - "inject_duplicate_confirm": { - "message": "Duplicar", - "description": "Button to duplicate all the threads." - }, - "inject_duplicate_progress": { - "message": "Progrés", - "description": "Title for a progress bar which indicates how many threads were duplicated." } } diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index 0778af3..43b6de9 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -51,10 +51,6 @@ "message": "Show a \"previous posts\" link in user profiles.", "description": "Feature checkbox in the options page" }, - "options_batchduplicate": { - "message": "Add the option to duplicate multiple threads at the same time from the Community Console thread list.", - "description": "Feature checkbox in the options page" - }, "options_escalatethreads":{ "message": "Enables the enableEscalateThread Community Console flag.", "description": "Feature checkbox in the options page" @@ -82,29 +78,5 @@ "inject_previousposts": { "message": "Previous posts", "description": "Link shown in a user profile (in TW and the Community Console) which points to a search showing the user's posts and messages" - }, - "inject_duplicatebtn": { - "message": "Mark as duplicate", - "description": "Tooltip of the 'duplicate treads' icon shown when selecting multiple threads in the Community Console." - }, - "inject_duplicateinto": { - "message": "Duplicate into:", - "description": "Label for the text field in which the user has to enter the thread they want to duplicate into." - }, - "inject_duplicateinto_placeholder": { - "message": "Enter the Community Console URL", - "description": "Placeholder for the URL field." - }, - "inject_duplicate_cancel": { - "message": "Cancel", - "description": "Button to cancel the duplication process." - }, - "inject_duplicate_confirm": { - "message": "Duplicate", - "description": "Button to duplicate all the threads." - }, - "inject_duplicate_progress": { - "message": "Progress", - "description": "Title for a progress bar which indicates how many threads were duplicated." } } diff --git a/src/_locales/es/messages.json b/src/_locales/es/messages.json index 2ea91e6..89941c0 100644 --- a/src/_locales/es/messages.json +++ b/src/_locales/es/messages.json @@ -51,10 +51,6 @@ "message": "Muestra un enlace \"historial de publicaciones\" en los perfiles de usuario.", "description": "Feature checkbox in the options page" }, - "options_batchduplicate": { - "message": "Añade la opción para duplicar varios hilos a la vez en la lista de hilos de la Consola de la Comunidad.", - "description": "Feature checkbox in the options page" - }, "options_escalatethreads":{ "message": "Activa la flag enableEscalateThread de la Consola de la Comunidad.", "description": "Feature checkbox in the options page" @@ -82,29 +78,5 @@ "inject_previousposts": { "message": "Historial de publicaciones", "description": "Link shown in a user profile (in TW and the Community Console) which points to a search showing the user's posts and messages" - }, - "inject_duplicatebtn": { - "message": "Duplicar hilos", - "description": "Tooltip of the 'duplicate treads' icon shown when selecting multiple threads in the Community Console." - }, - "inject_duplicateinto": { - "message": "Duplicar a:", - "description": "Label for the text field in which the user has to enter the thread they want to duplicate into." - }, - "inject_duplicateinto_placeholder": { - "message": "Introduce la URL de la Consola de la Comunidad", - "description": "Placeholder for the URL field." - }, - "inject_duplicate_cancel": { - "message": "Cancelar", - "description": "Button to cancel the duplication process." - }, - "inject_duplicate_confirm": { - "message": "Duplicar", - "description": "Button to duplicate all the threads." - }, - "inject_duplicate_progress": { - "message": "Progreso", - "description": "Title for a progress bar which indicates how many threads were duplicated." } } diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json index a0ba81d..8c5626e 100644 --- a/src/_locales/ru/messages.json +++ b/src/_locales/ru/messages.json @@ -51,10 +51,6 @@ "message": "Показывать ссылку \"Сообщения пользователя\" в профилях пользователей.", "description": "Опция на странице настроек." }, - "options_batchduplicate": { - "message": "Добавляет опцию одновременного дублирования нескольких потоков из списка потоков в Консоли сообщества.", - "description": "Опция на странице настроек." - }, "options_escalatethreads":{ "message": "Включает enableEscalateThread флаг Консоли сообщества.", "description": "Опция на странице настроек." @@ -74,29 +70,5 @@ "inject_previousposts": { "message": "Сообщения пользователя", "description": "Ссылка отображаемая в профиле пользователя (в TW и в Консоли сообщества), которая указывает на поиск, показывающий посты и ответы пользователя." - }, - "inject_duplicatebtn": { - "message": "Отметить как дубликат", - "description": "Подсказка о значке \"дубликат\", отображаемом при выборе нескольких потоков в консоли сообщества." - }, - "inject_duplicateinto": { - "message": "Дубликат:", - "description": "Метка для текстового поля, в котором пользователь должен ввести поток, в который он хочет привязать дубликат." - }, - "inject_duplicateinto_placeholder": { - "message": "Введите URL-адрес консоли сообщества", - "description": "Заполнитель для поля URL." - }, - "inject_duplicate_cancel": { - "message": "Отмена", - "description": "Кнопка, чтобы отменить процесс отметки дубликата." - }, - "inject_duplicate_confirm": { - "message": "Дубликат", - "description": "Кнопка для дублирования всех потоков." - }, - "inject_duplicate_progress": { - "message": "Прогресс", - "description": "Название для индикатора выполнения, который указывает, сколько потоков было продублировано." } } diff --git a/src/console_inject_start.js b/src/console_inject_start.js index 047f2b7..4b6a7ba 100644 --- a/src/console_inject_start.js +++ b/src/console_inject_start.js @@ -1,15 +1,11 @@ chrome.storage.sync.get(null, function(items) { - if (items.loaddrafts || items.batchduplicate) { + if (items.loaddrafts) { var startup = JSON.parse(document.querySelector("html").getAttribute("data-startup")); if (items.loaddrafts) { startup[4][13] = true; } - if (items.batchduplicate) { - startup[4][58] = true; - } - document.querySelector("html").setAttribute("data-startup", JSON.stringify(startup)); } }); diff --git a/src/options.html b/src/options.html index 5bdb675..8edaea2 100644 --- a/src/options.html +++ b/src/options.html @@ -16,7 +16,6 @@




-


diff --git a/src/options.js b/src/options.js index 2bcd96f..1a321b4 100644 --- a/src/options.js +++ b/src/options.js @@ -20,7 +20,8 @@ const defaultOptions = { const deprecatedOptions = [ "list", "escalatethreads", - "movethreads" + "movethreads", + "batchduplicate" ]; function cleanUpOptions(options) {