Skip to content

Commit

Permalink
add "do not include the saved date" option
Browse files Browse the repository at this point in the history
(fix #1058)
  • Loading branch information
gildas-lormeau committed Dec 18, 2022
1 parent 9c28cc3 commit e49cfe3
Show file tree
Hide file tree
Showing 16 changed files with 166 additions and 47 deletions.
8 changes: 8 additions & 0 deletions _locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "Einfügen Inhalt des Infoknopfs in die gespeicherte Seite",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "Enthalten nicht das gespeicherte Datum",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "Inhalt des Infoknopfs im Dialogfenster eingeben",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "Verborgene Elemente entfernen",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Infoknopf",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "Bilder",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "include the infobar in the saved page",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "do not include the saved date",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "open a prompt dialog to edit the infobar content",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "remove hidden elements",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Infobar",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "Images",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "incluir la barra informativa en la página guardada",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "no incluya la fecha guardada",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "abrir un cuadro de diálogo para editar el contenido de la barra informativa",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "eliminar elementos ocultos (hidden)",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Barra informativa",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "Imágenes",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "inclure la barre d'information dans la page sauvegardée",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "ne pas inclure la date de sauvegarde",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "ouvrir une boite de dialogue pour éditer le contenu de la barre d'information",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "supprimer les élements cachés",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Barre d'information",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "Images",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "includi una barra informativa nella pagina salvata",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "non includere la data di salvataggio",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "Apri un finestra di dialogo per modificare il contenuto della barra informativa",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "rimuovi elementi nascosti",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Infobar",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "Immagini",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "保存されたページに、infobar を含める",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "do not include the saved date",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "infobar のコンテンツを編集するためのプロンプトダイアログを開く",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "隠された要素を削除する",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Infobar",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "画像",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "dołączaj pasek informacyjny do zapisanej strony",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "do not include the saved date",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "otwieraj okno dialogowe z monitem, aby edytować zawartość paska informacyjnego",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "usuwaj ukryte elementy",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Infobar",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "Obrazy",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/pt_br/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "incluir o infobar no site salvo",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "não incluir data de salvamento",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "abrir um diálogo com aviso para editar conteúdo do infobar",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "remover elementos escondidos",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Infobar",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "Imagens",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "добавить информационную панель в сохраняемую страницу",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "do not include the saved date",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "открыть диалоговое окно для редактирования содержимого информационной панели",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "удалить скрытые элементы",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Infobar",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "Изображения",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/uk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "додавати інформ. панель в сторінку що зберігається",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "не включати збережену дату",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "відкривати діалогове вікно для редагування вмісту інформаційної панелі",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "видалити приховані елементи",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Інфобар",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "Зображення",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "在已保存页面中将信息栏包括在内",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "do not include the saved date",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "打开一个提示对话框来编辑信息栏内容",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "移除隐藏元素",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Infobar",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "图片",
"description": "Options sub-title: 'Images'"
Expand Down
8 changes: 8 additions & 0 deletions _locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"message": "在已保存頁面中將信息欄包括在內",
"description": "Options page label: 'include the infobar in the saved page'"
},
"optionRemoveInfobarSavedDate": {
"message": "do not include the saved date",
"description": "Options page label: 'do not include the saved date'"
},
"optionConfirmInfobar": {
"message": "打開一個提示對話框來編輯信息欄內容",
"description": "Options page label: 'open a prompt dialog to edit the infobar content'"
Expand Down Expand Up @@ -243,6 +247,10 @@
"message": "移除隱藏元素",
"description": "Options page label: 'remove hidden elements'"
},
"optionsInfobarSubTitle": {
"message": "Infobar",
"description": "Options sub-title: 'Infobar'"
},
"optionsImagesSubTitle": {
"message": "圖片",
"description": "Options sub-title: 'Images'"
Expand Down
1 change: 1 addition & 0 deletions src/core/bg/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const DEFAULT_CONFIG = {
insertMetaCSP: true,
passReferrerOnError: false,
insertSingleFileComment: true,
removeSavedDate: false,
blockMixedContent: false,
saveOriginalURLs: false,
acceptHeaders: {
Expand Down
7 changes: 7 additions & 0 deletions src/ui/bg/ui-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const titleLabel = document.getElementById("titleLabel");
const userInterfaceLabel = document.getElementById("userInterfaceLabel");
const filenameLabel = document.getElementById("filenameLabel");
const htmlContentLabel = document.getElementById("htmlContentLabel");
const infobarLabel = document.getElementById("infobarLabel");
const imagesLabel = document.getElementById("imagesLabel");
const stylesheetsLabel = document.getElementById("stylesheetsLabel");
const fontsLabel = document.getElementById("fontsLabel");
Expand Down Expand Up @@ -166,6 +167,7 @@ const infobarTemplateLabel = document.getElementById("infobarTemplateLabel");
const blockMixedContentLabel = document.getElementById("blockMixedContentLabel");
const saveOriginalURLsLabel = document.getElementById("saveOriginalURLsLabel");
const includeInfobarLabel = document.getElementById("includeInfobarLabel");
const removeInfobarSavedDateLabel = document.getElementById("removeInfobarSavedDateLabel");
const miscLabel = document.getElementById("miscLabel");
const helpLabel = document.getElementById("helpLabel");
const synchronizeLabel = document.getElementById("synchronizeLabel");
Expand Down Expand Up @@ -254,6 +256,7 @@ const infobarTemplateInput = document.getElementById("infobarTemplateInput");
const blockMixedContentInput = document.getElementById("blockMixedContentInput");
const saveOriginalURLsInput = document.getElementById("saveOriginalURLsInput");
const includeInfobarInput = document.getElementById("includeInfobarInput");
const removeInfobarSavedDateInput = document.getElementById("removeInfobarSavedDateInput");
const confirmInfobarInput = document.getElementById("confirmInfobarInput");
const autoCloseInput = document.getElementById("autoCloseInput");
const openEditorInput = document.getElementById("openEditorInput");
Expand Down Expand Up @@ -624,6 +627,7 @@ titleLabel.textContent = browser.i18n.getMessage("optionsTitle");
userInterfaceLabel.textContent = browser.i18n.getMessage("optionsUserInterfaceSubTitle");
filenameLabel.textContent = browser.i18n.getMessage("optionsFileNameSubTitle");
htmlContentLabel.textContent = browser.i18n.getMessage("optionsHTMLContentSubTitle");
infobarLabel.textContent = browser.i18n.getMessage("optionsInfobarSubTitle");
imagesLabel.textContent = browser.i18n.getMessage("optionsImagesSubTitle");
stylesheetsLabel.textContent = browser.i18n.getMessage("optionsStylesheetsSubTitle");
fontsLabel.textContent = browser.i18n.getMessage("optionsFontsSubTitle");
Expand All @@ -639,6 +643,7 @@ infobarTemplateLabel.textContent = browser.i18n.getMessage("optionInfobarTemplat
blockMixedContentLabel.textContent = browser.i18n.getMessage("optionBlockMixedContent");
saveOriginalURLsLabel.textContent = browser.i18n.getMessage("optionSaveOriginalURLs");
includeInfobarLabel.textContent = browser.i18n.getMessage("optionIncludeInfobar");
removeInfobarSavedDateLabel.textContent = browser.i18n.getMessage("optionRemoveInfobarSavedDate");
confirmInfobarLabel.textContent = browser.i18n.getMessage("optionConfirmInfobar");
autoCloseLabel.textContent = browser.i18n.getMessage("optionAutoClose");
editorLabel.textContent = browser.i18n.getMessage("optionsEditorSubTitle");
Expand Down Expand Up @@ -910,6 +915,7 @@ async function refresh(profileName) {
blockMixedContentInput.checked = profileOptions.blockMixedContent;
saveOriginalURLsInput.checked = profileOptions.saveOriginalURLs;
includeInfobarInput.checked = profileOptions.includeInfobar;
removeInfobarSavedDateInput.checked = profileOptions.removeSavedDate;
confirmInfobarInput.checked = profileOptions.confirmInfobarContent;
autoCloseInput.checked = profileOptions.autoClose;
openEditorInput.checked = profileOptions.openEditor;
Expand Down Expand Up @@ -1011,6 +1017,7 @@ async function update() {
blockMixedContent: blockMixedContentInput.checked,
saveOriginalURLs: saveOriginalURLsInput.checked,
includeInfobar: includeInfobarInput.checked,
removeSavedDate: removeInfobarSavedDateInput.checked,
confirmInfobarContent: confirmInfobarInput.checked,
autoClose: autoCloseInput.checked,
openEditor: openEditorInput.checked,
Expand Down
Loading

0 comments on commit e49cfe3

Please sign in to comment.