|
|
@@ -21,8 +21,6 @@
|
|
|
* Source.
|
|
|
*/
|
|
|
|
|
|
-import { save } from "../../core/bg/companion.js";
|
|
|
-
|
|
|
/* global browser, window, document, localStorage, FileReader, location, fetch, TextDecoder, DOMParser, HTMLElement, MouseEvent */
|
|
|
|
|
|
const HELP_ICON_URL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABIUlEQVQ4y+2TsarCMBSGvxTBRdqiUZAWOrhJB9EXcPKFfCvfQYfulUKHDqXg4CYUJSioYO4mSDX3ttzt3n87fMlHTpIjlsulxpDZbEYYhgghSNOUOI5Ny2mZYBAELBYLer0eAJ7ncTweKYri4x7LJJRS0u12n7XrukgpjSc0CpVSXK/XZ32/31FKNW85z3PW6zXT6RSAJEnIsqy5UGvNZrNhu90CcDqd+C6tT6J+v//2Th+PB2VZ1hN2Oh3G4zGTyQTbtl/YbrdjtVpxu91+Ljyfz0RRhG3bzOfzF+Y4TvNXvlwuaK2pE4tfzr/wzwsty0IIURlL0998KxRCMBqN8H2/wlzXJQxD2u12vVkeDoeUZUkURRU+GAw4HA7s9/sK+wK6CWHasQ/S/wAAAABJRU5ErkJggg==";
|
|
|
@@ -195,6 +193,7 @@ const infobarTemplateLabel = document.getElementById("infobarTemplateLabel");
|
|
|
const blockMixedContentLabel = document.getElementById("blockMixedContentLabel");
|
|
|
const saveOriginalURLsLabel = document.getElementById("saveOriginalURLsLabel");
|
|
|
const includeInfobarLabel = document.getElementById("includeInfobarLabel");
|
|
|
+const openInfobarLabel = document.getElementById("openInfobarLabel");
|
|
|
const removeInfobarSavedDateLabel = document.getElementById("removeInfobarSavedDateLabel");
|
|
|
const miscLabel = document.getElementById("miscLabel");
|
|
|
const helpLabel = document.getElementById("helpLabel");
|
|
|
@@ -299,6 +298,7 @@ const infobarTemplateInput = document.getElementById("infobarTemplateInput");
|
|
|
const blockMixedContentInput = document.getElementById("blockMixedContentInput");
|
|
|
const saveOriginalURLsInput = document.getElementById("saveOriginalURLsInput");
|
|
|
const includeInfobarInput = document.getElementById("includeInfobarInput");
|
|
|
+const openInfobarInput = document.getElementById("openInfobarInput");
|
|
|
const removeInfobarSavedDateInput = document.getElementById("removeInfobarSavedDateInput");
|
|
|
const confirmInfobarInput = document.getElementById("confirmInfobarInput");
|
|
|
const autoCloseInput = document.getElementById("autoCloseInput");
|
|
|
@@ -762,6 +762,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");
|
|
|
+openInfobarLabel.textContent = browser.i18n.getMessage("optionOpenInfobar");
|
|
|
removeInfobarSavedDateLabel.textContent = browser.i18n.getMessage("optionRemoveInfobarSavedDate");
|
|
|
confirmInfobarLabel.textContent = browser.i18n.getMessage("optionConfirmInfobar");
|
|
|
autoCloseLabel.textContent = browser.i18n.getMessage("optionAutoClose");
|
|
|
@@ -1085,6 +1086,7 @@ async function refresh(profileName) {
|
|
|
blockMixedContentInput.checked = profileOptions.blockMixedContent;
|
|
|
saveOriginalURLsInput.checked = profileOptions.saveOriginalURLs;
|
|
|
includeInfobarInput.checked = profileOptions.includeInfobar;
|
|
|
+ openInfobarInput.checked = profileOptions.openInfobar;
|
|
|
removeInfobarSavedDateInput.checked = profileOptions.removeSavedDate;
|
|
|
confirmInfobarInput.checked = profileOptions.confirmInfobarContent;
|
|
|
autoCloseInput.checked = profileOptions.autoClose;
|
|
|
@@ -1203,6 +1205,7 @@ async function update() {
|
|
|
blockMixedContent: blockMixedContentInput.checked,
|
|
|
saveOriginalURLs: saveOriginalURLsInput.checked,
|
|
|
includeInfobar: includeInfobarInput.checked,
|
|
|
+ openInfobar: openInfobarInput.checked,
|
|
|
removeSavedDate: removeInfobarSavedDateInput.checked,
|
|
|
confirmInfobarContent: confirmInfobarInput.checked,
|
|
|
autoClose: autoCloseInput.checked,
|