diff --git a/pages/options/options.css b/pages/options/options.css index a90aaf1d..3b647671 100644 --- a/pages/options/options.css +++ b/pages/options/options.css @@ -351,7 +351,7 @@ div[class="color-picker:a"] { margin-top: 1em; } -#tf-domains-allowlist-google-fonts { +#allowedDomainsGoogleFonts { box-sizing: border-box; margin-top: 0 !important; width: 100%; diff --git a/pages/options/options.html b/pages/options/options.html index d78648d5..7bbbcf1d 100644 --- a/pages/options/options.html +++ b/pages/options/options.html @@ -149,7 +149,7 @@
If you use the rules of the rule generator, requests to "fonts.googleapis.com" are allowed to substitute "Google Material Icons" automatically. If you want to block the other requests, enable this option.
-
+
These domains are allowed to load Google Fonts. One domain per line.
@@ -179,7 +179,7 @@
Do not apply HTML filter to these domains:
Apply HTML filter to these domains:
- +
Enter the domains to be handled or ignored by the HTML filter. One domain per line.
diff --git a/pages/options/options.js b/pages/options/options.js index 752bfe39..2d81ee1a 100644 --- a/pages/options/options.js +++ b/pages/options/options.js @@ -304,23 +304,6 @@ options._changeTab = function ({target}) { }; -/** - * Updates the domain lists if the options page has no focus. - * document.hasFocus() prevents problems with keyboard input. - */ -options._updatesDomainLists = function (changes) { - let changedItems = Object.keys(changes); - - if (!document.hasFocus()) { - if (changedItems[0] === 'allowlistedDomains') { - document.getElementById('tf-domains-allowlist').value = options._serializeAllowlistedDomains(changes['allowlistedDomains'].newValue); - } else if (changedItems[0] === 'domainsManipulateDOM') { - document.getElementById('tf-domains-manipulate-dom').value = options._serializeAllowlistedDomains(changes['domainsManipulateDOM'].newValue); - } - } -}; - - /** * Initializations */ @@ -328,5 +311,3 @@ options._updatesDomainLists = function (changes) { options._storageType = 'local'; document.addEventListener('DOMContentLoaded', options._onDocumentLoaded); - -chrome.storage.onChanged.addListener(options._updatesDomainLists);