|
@@ -81,6 +81,7 @@
|
|
|
const showAutoSaveProfileLabel = document.getElementById("showAutoSaveProfileLabel");
|
|
const showAutoSaveProfileLabel = document.getElementById("showAutoSaveProfileLabel");
|
|
|
const groupDuplicateImagesLabel = document.getElementById("groupDuplicateImagesLabel");
|
|
const groupDuplicateImagesLabel = document.getElementById("groupDuplicateImagesLabel");
|
|
|
const confirmInfobarLabel = document.getElementById("confirmInfobarLabel");
|
|
const confirmInfobarLabel = document.getElementById("confirmInfobarLabel");
|
|
|
|
|
+ const autoCloseLabel = document.getElementById("autoCloseLabel");
|
|
|
const infobarTemplateLabel = document.getElementById("infobarTemplateLabel");
|
|
const infobarTemplateLabel = document.getElementById("infobarTemplateLabel");
|
|
|
const includeInfobarLabel = document.getElementById("includeInfobarLabel");
|
|
const includeInfobarLabel = document.getElementById("includeInfobarLabel");
|
|
|
const miscLabel = document.getElementById("miscLabel");
|
|
const miscLabel = document.getElementById("miscLabel");
|
|
@@ -130,6 +131,7 @@
|
|
|
const infobarTemplateInput = document.getElementById("infobarTemplateInput");
|
|
const infobarTemplateInput = document.getElementById("infobarTemplateInput");
|
|
|
const includeInfobarInput = document.getElementById("includeInfobarInput");
|
|
const includeInfobarInput = document.getElementById("includeInfobarInput");
|
|
|
const confirmInfobarInput = document.getElementById("confirmInfobarInput");
|
|
const confirmInfobarInput = document.getElementById("confirmInfobarInput");
|
|
|
|
|
+ const autoCloseInput = document.getElementById("autoCloseInput");
|
|
|
const expandAllButton = document.getElementById("expandAllButton");
|
|
const expandAllButton = document.getElementById("expandAllButton");
|
|
|
const rulesDeleteAllButton = document.getElementById("rulesDeleteAllButton");
|
|
const rulesDeleteAllButton = document.getElementById("rulesDeleteAllButton");
|
|
|
const ruleUrlInput = document.getElementById("ruleUrlInput");
|
|
const ruleUrlInput = document.getElementById("ruleUrlInput");
|
|
@@ -414,6 +416,7 @@
|
|
|
infobarTemplateLabel.textContent = browser.i18n.getMessage("optionInfobarTemplate");
|
|
infobarTemplateLabel.textContent = browser.i18n.getMessage("optionInfobarTemplate");
|
|
|
includeInfobarLabel.textContent = browser.i18n.getMessage("optionIncludeInfobar");
|
|
includeInfobarLabel.textContent = browser.i18n.getMessage("optionIncludeInfobar");
|
|
|
confirmInfobarLabel.textContent = browser.i18n.getMessage("optionConfirmInfobar");
|
|
confirmInfobarLabel.textContent = browser.i18n.getMessage("optionConfirmInfobar");
|
|
|
|
|
+ autoCloseLabel.textContent = browser.i18n.getMessage("optionAutoCloseLabel");
|
|
|
resetButton.textContent = browser.i18n.getMessage("optionsResetButton");
|
|
resetButton.textContent = browser.i18n.getMessage("optionsResetButton");
|
|
|
exportButton.textContent = browser.i18n.getMessage("optionsExportButton");
|
|
exportButton.textContent = browser.i18n.getMessage("optionsExportButton");
|
|
|
importButton.textContent = browser.i18n.getMessage("optionsImportButton");
|
|
importButton.textContent = browser.i18n.getMessage("optionsImportButton");
|
|
@@ -586,6 +589,7 @@
|
|
|
infobarTemplateInput.value = profileOptions.infobarTemplate;
|
|
infobarTemplateInput.value = profileOptions.infobarTemplate;
|
|
|
includeInfobarInput.checked = profileOptions.includeInfobar;
|
|
includeInfobarInput.checked = profileOptions.includeInfobar;
|
|
|
confirmInfobarInput.checked = profileOptions.confirmInfobarContent;
|
|
confirmInfobarInput.checked = profileOptions.confirmInfobarContent;
|
|
|
|
|
+ autoCloseInput.checked = profileOptions.autoClose;
|
|
|
removeFramesInput.disabled = saveRawPageInput.checked;
|
|
removeFramesInput.disabled = saveRawPageInput.checked;
|
|
|
removeFramesInput.checked = removeFramesInput.checked || saveRawPageInput.checked;
|
|
removeFramesInput.checked = removeFramesInput.checked || saveRawPageInput.checked;
|
|
|
loadDeferredImagesInput.disabled = saveRawPageInput.checked;
|
|
loadDeferredImagesInput.disabled = saveRawPageInput.checked;
|
|
@@ -640,7 +644,8 @@
|
|
|
groupDuplicateImages: groupDuplicateImagesInput.checked,
|
|
groupDuplicateImages: groupDuplicateImagesInput.checked,
|
|
|
infobarTemplate: infobarTemplateInput.value,
|
|
infobarTemplate: infobarTemplateInput.value,
|
|
|
includeInfobar: includeInfobarInput.checked,
|
|
includeInfobar: includeInfobarInput.checked,
|
|
|
- confirmInfobarContent: confirmInfobarInput.checked
|
|
|
|
|
|
|
+ confirmInfobarContent: confirmInfobarInput.checked,
|
|
|
|
|
+ autoClose: autoCloseInput.checked
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
await pendingSave;
|
|
await pendingSave;
|