|
@@ -84,6 +84,7 @@
|
|
|
const confirmInfobarLabel = document.getElementById("confirmInfobarLabel");
|
|
const confirmInfobarLabel = document.getElementById("confirmInfobarLabel");
|
|
|
const autoCloseLabel = document.getElementById("autoCloseLabel");
|
|
const autoCloseLabel = document.getElementById("autoCloseLabel");
|
|
|
const openEditorLabel = document.getElementById("openEditorLabel");
|
|
const openEditorLabel = document.getElementById("openEditorLabel");
|
|
|
|
|
+ const autoOpenEditorLabel = document.getElementById("autoOpenEditorLabel");
|
|
|
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");
|
|
@@ -136,6 +137,7 @@
|
|
|
const confirmInfobarInput = document.getElementById("confirmInfobarInput");
|
|
const confirmInfobarInput = document.getElementById("confirmInfobarInput");
|
|
|
const autoCloseInput = document.getElementById("autoCloseInput");
|
|
const autoCloseInput = document.getElementById("autoCloseInput");
|
|
|
const openEditorInput = document.getElementById("openEditorInput");
|
|
const openEditorInput = document.getElementById("openEditorInput");
|
|
|
|
|
+ const autoOpenEditorInput = document.getElementById("autoOpenEditorInput");
|
|
|
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");
|
|
@@ -165,7 +167,7 @@
|
|
|
sidePanelDisplay = true;
|
|
sidePanelDisplay = true;
|
|
|
document.querySelector(".options-title").remove();
|
|
document.querySelector(".options-title").remove();
|
|
|
document.documentElement.classList.add("side-panel");
|
|
document.documentElement.classList.add("side-panel");
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
browser.runtime.onMessage.addListener(message => {
|
|
browser.runtime.onMessage.addListener(message => {
|
|
|
if (message.method == "options.refresh" || (message.method == "options.refreshPanel" && sidePanelDisplay)) {
|
|
if (message.method == "options.refresh" || (message.method == "options.refreshPanel" && sidePanelDisplay)) {
|
|
|
refresh(message.profileName);
|
|
refresh(message.profileName);
|
|
@@ -436,6 +438,7 @@
|
|
|
confirmInfobarLabel.textContent = browser.i18n.getMessage("optionConfirmInfobar");
|
|
confirmInfobarLabel.textContent = browser.i18n.getMessage("optionConfirmInfobar");
|
|
|
autoCloseLabel.textContent = browser.i18n.getMessage("optionAutoCloseLabel");
|
|
autoCloseLabel.textContent = browser.i18n.getMessage("optionAutoCloseLabel");
|
|
|
openEditorLabel.textContent = browser.i18n.getMessage("optionOpenEditorLabel");
|
|
openEditorLabel.textContent = browser.i18n.getMessage("optionOpenEditorLabel");
|
|
|
|
|
+ autoOpenEditorLabel.textContent = browser.i18n.getMessage("optionAutoOpenEditor");
|
|
|
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");
|
|
@@ -607,6 +610,7 @@
|
|
|
confirmInfobarInput.checked = profileOptions.confirmInfobarContent;
|
|
confirmInfobarInput.checked = profileOptions.confirmInfobarContent;
|
|
|
autoCloseInput.checked = profileOptions.autoClose;
|
|
autoCloseInput.checked = profileOptions.autoClose;
|
|
|
openEditorInput.checked = profileOptions.openEditor;
|
|
openEditorInput.checked = profileOptions.openEditor;
|
|
|
|
|
+ autoOpenEditorInput.checked = profileOptions.autoOpenEditor;
|
|
|
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;
|
|
@@ -664,7 +668,8 @@
|
|
|
includeInfobar: includeInfobarInput.checked,
|
|
includeInfobar: includeInfobarInput.checked,
|
|
|
confirmInfobarContent: confirmInfobarInput.checked,
|
|
confirmInfobarContent: confirmInfobarInput.checked,
|
|
|
autoClose: autoCloseInput.checked,
|
|
autoClose: autoCloseInput.checked,
|
|
|
- openEditor: openEditorInput.checked
|
|
|
|
|
|
|
+ openEditor: openEditorInput.checked,
|
|
|
|
|
+ autoOpenEditor: autoOpenEditorInput.checked
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
await pendingSave;
|
|
await pendingSave;
|