|
@@ -97,6 +97,7 @@ const loadDeferredImagesLabel = document.getElementById("loadDeferredImagesLabel
|
|
|
const loadDeferredImagesMaxIdleTimeLabel = document.getElementById("loadDeferredImagesMaxIdleTimeLabel");
|
|
const loadDeferredImagesMaxIdleTimeLabel = document.getElementById("loadDeferredImagesMaxIdleTimeLabel");
|
|
|
const loadDeferredImagesKeepZoomLevelLabel = document.getElementById("loadDeferredImagesKeepZoomLevelLabel");
|
|
const loadDeferredImagesKeepZoomLevelLabel = document.getElementById("loadDeferredImagesKeepZoomLevelLabel");
|
|
|
const loadDeferredImagesDispatchScrollEventLabel = document.getElementById("loadDeferredImagesDispatchScrollEventLabel");
|
|
const loadDeferredImagesDispatchScrollEventLabel = document.getElementById("loadDeferredImagesDispatchScrollEventLabel");
|
|
|
|
|
+const loadDeferredImagesBeforeFramesLabel = document.getElementById("loadDeferredImagesBeforeFramesLabel");
|
|
|
const addMenuEntryLabel = document.getElementById("addMenuEntryLabel");
|
|
const addMenuEntryLabel = document.getElementById("addMenuEntryLabel");
|
|
|
const filenameTemplateLabel = document.getElementById("filenameTemplateLabel");
|
|
const filenameTemplateLabel = document.getElementById("filenameTemplateLabel");
|
|
|
const filenameMaxLengthLabel = document.getElementById("filenameMaxLengthLabel");
|
|
const filenameMaxLengthLabel = document.getElementById("filenameMaxLengthLabel");
|
|
@@ -221,6 +222,7 @@ const loadDeferredImagesInput = document.getElementById("loadDeferredImagesInput
|
|
|
const loadDeferredImagesMaxIdleTimeInput = document.getElementById("loadDeferredImagesMaxIdleTimeInput");
|
|
const loadDeferredImagesMaxIdleTimeInput = document.getElementById("loadDeferredImagesMaxIdleTimeInput");
|
|
|
const loadDeferredImagesKeepZoomLevelInput = document.getElementById("loadDeferredImagesKeepZoomLevelInput");
|
|
const loadDeferredImagesKeepZoomLevelInput = document.getElementById("loadDeferredImagesKeepZoomLevelInput");
|
|
|
const loadDeferredImagesDispatchScrollEventInput = document.getElementById("loadDeferredImagesDispatchScrollEventInput");
|
|
const loadDeferredImagesDispatchScrollEventInput = document.getElementById("loadDeferredImagesDispatchScrollEventInput");
|
|
|
|
|
+const loadDeferredImagesBeforeFramesInput = document.getElementById("loadDeferredImagesBeforeFramesInput");
|
|
|
const contextMenuEnabledInput = document.getElementById("contextMenuEnabledInput");
|
|
const contextMenuEnabledInput = document.getElementById("contextMenuEnabledInput");
|
|
|
const filenameTemplateInput = document.getElementById("filenameTemplateInput");
|
|
const filenameTemplateInput = document.getElementById("filenameTemplateInput");
|
|
|
const filenameMaxLengthInput = document.getElementById("filenameMaxLengthInput");
|
|
const filenameMaxLengthInput = document.getElementById("filenameMaxLengthInput");
|
|
@@ -595,6 +597,7 @@ loadDeferredImagesLabel.textContent = browser.i18n.getMessage("optionLoadDeferre
|
|
|
loadDeferredImagesMaxIdleTimeLabel.textContent = browser.i18n.getMessage("optionLoadDeferredImagesMaxIdleTime");
|
|
loadDeferredImagesMaxIdleTimeLabel.textContent = browser.i18n.getMessage("optionLoadDeferredImagesMaxIdleTime");
|
|
|
loadDeferredImagesKeepZoomLevelLabel.textContent = browser.i18n.getMessage("optionLoadDeferredImagesKeepZoomLevel");
|
|
loadDeferredImagesKeepZoomLevelLabel.textContent = browser.i18n.getMessage("optionLoadDeferredImagesKeepZoomLevel");
|
|
|
loadDeferredImagesDispatchScrollEventLabel.textContent = browser.i18n.getMessage("optionLoadDeferredImagesDispatchScrollEvent");
|
|
loadDeferredImagesDispatchScrollEventLabel.textContent = browser.i18n.getMessage("optionLoadDeferredImagesDispatchScrollEvent");
|
|
|
|
|
+loadDeferredImagesBeforeFramesLabel.textContent = browser.i18n.getMessage("optionLoadDeferredImagesBeforeFrames");
|
|
|
addMenuEntryLabel.textContent = browser.i18n.getMessage("optionAddMenuEntry");
|
|
addMenuEntryLabel.textContent = browser.i18n.getMessage("optionAddMenuEntry");
|
|
|
filenameTemplateLabel.textContent = browser.i18n.getMessage("optionFilenameTemplate");
|
|
filenameTemplateLabel.textContent = browser.i18n.getMessage("optionFilenameTemplate");
|
|
|
filenameMaxLengthLabel.textContent = browser.i18n.getMessage("optionFilenameMaxLength");
|
|
filenameMaxLengthLabel.textContent = browser.i18n.getMessage("optionFilenameMaxLength");
|
|
@@ -880,6 +883,8 @@ async function refresh(profileName) {
|
|
|
loadDeferredImagesMaxIdleTimeInput.disabled = !profileOptions.loadDeferredImages;
|
|
loadDeferredImagesMaxIdleTimeInput.disabled = !profileOptions.loadDeferredImages;
|
|
|
loadDeferredImagesDispatchScrollEventInput.checked = profileOptions.loadDeferredImagesDispatchScrollEvent;
|
|
loadDeferredImagesDispatchScrollEventInput.checked = profileOptions.loadDeferredImagesDispatchScrollEvent;
|
|
|
loadDeferredImagesDispatchScrollEventInput.disabled = !profileOptions.loadDeferredImages;
|
|
loadDeferredImagesDispatchScrollEventInput.disabled = !profileOptions.loadDeferredImages;
|
|
|
|
|
+ loadDeferredImagesBeforeFramesInput.checked = profileOptions.loadDeferredImagesBeforeFrames;
|
|
|
|
|
+ loadDeferredImagesBeforeFramesInput.disabled = !profileOptions.loadDeferredImages;
|
|
|
contextMenuEnabledInput.checked = profileOptions.contextMenuEnabled;
|
|
contextMenuEnabledInput.checked = profileOptions.contextMenuEnabled;
|
|
|
filenameTemplateInput.value = profileOptions.filenameTemplate;
|
|
filenameTemplateInput.value = profileOptions.filenameTemplate;
|
|
|
filenameMaxLengthInput.value = profileOptions.filenameMaxLength;
|
|
filenameMaxLengthInput.value = profileOptions.filenameMaxLength;
|
|
@@ -993,6 +998,7 @@ async function update() {
|
|
|
loadDeferredImagesMaxIdleTime: Math.max(loadDeferredImagesMaxIdleTimeInput.value, 0),
|
|
loadDeferredImagesMaxIdleTime: Math.max(loadDeferredImagesMaxIdleTimeInput.value, 0),
|
|
|
loadDeferredImagesKeepZoomLevel: loadDeferredImagesKeepZoomLevelInput.checked,
|
|
loadDeferredImagesKeepZoomLevel: loadDeferredImagesKeepZoomLevelInput.checked,
|
|
|
loadDeferredImagesDispatchScrollEvent: loadDeferredImagesDispatchScrollEventInput.checked,
|
|
loadDeferredImagesDispatchScrollEvent: loadDeferredImagesDispatchScrollEventInput.checked,
|
|
|
|
|
+ loadDeferredImagesBeforeFrames: loadDeferredImagesBeforeFramesInput.checked,
|
|
|
contextMenuEnabled: contextMenuEnabledInput.checked,
|
|
contextMenuEnabled: contextMenuEnabledInput.checked,
|
|
|
filenameTemplate: filenameTemplateInput.value,
|
|
filenameTemplate: filenameTemplateInput.value,
|
|
|
filenameMaxLength: filenameMaxLengthInput.value,
|
|
filenameMaxLength: filenameMaxLengthInput.value,
|