diff --git a/pages/options/options.html b/pages/options/options.html index 303932be..c7fafba1 100644 --- a/pages/options/options.html +++ b/pages/options/options.html @@ -165,6 +165,7 @@
Do not apply HTML-Filter to these domains:
+
Apply HTML-Filter for these domains:
Enter domains for HTML filter. Separate multiple entries with semi-colons (;).
diff --git a/pages/options/options.js b/pages/options/options.js index 215271c7..2c44465e 100644 --- a/pages/options/options.js +++ b/pages/options/options.js @@ -72,6 +72,14 @@ options._renderOptionsPanel = function () { options._renderLocaleNotice(); } + if(elements.negateHtmlFilterList.checked === true) { + document.getElementById('html-filter-domains-title-include').style.display = "none"; + document.getElementById('html-filter-domains-title-exclude').style.display = "block"; + } else { + document.getElementById('html-filter-domains-title-include').style.display = "block"; + document.getElementById('html-filter-domains-title-exclude').style.display = "none"; + } + document.getElementById('last-mapping-update').textContent += ' ' + lastMappingUpdate; document.getElementById('negate-html-filter-list-warning').addEventListener('click', options._onClickHTMLFilterWarning); }; @@ -252,6 +260,16 @@ options._onOptionChanged = function ({target}) { optionValue = options._parseDomainWhitelist(optionValue); } + if (optionKey === Setting.NEGATE_HTML_FILTER_LIST) { + if(optionValue === true) { + document.getElementById('html-filter-domains-title-include').style.display = "none"; + document.getElementById('html-filter-domains-title-exclude').style.display = "block"; + } else { + document.getElementById('html-filter-domains-title-include').style.display = "block"; + document.getElementById('html-filter-domains-title-exclude').style.display = "none"; + } + } + chrome.storage.sync.set({ [optionKey]: optionValue }); diff --git a/pages/updates/updates.html b/pages/updates/updates.html index df42fc20..3d491c91 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -41,6 +41,7 @@
  • Added: libphonenumber-js v1.7.53 (reported by email)
  • Added: Bootstrap 3 Typeahead v4.0.2 (reported by email)
  • Added: Chart.js (JS-Bundle & CSS) v2.9.3 (reported by email)
  • +
  • Improved: Option to enable HTML-Filter by default (#33)
  • Generate rule sets for uBlock or uMatrix