diff options
author | hackademix | 2019-02-01 00:31:00 +0100 |
---|---|---|
committer | hackademix | 2019-02-01 00:31:00 +0100 |
commit | 4e5f12a6c29d6adae8ae1a0236edb9d851846998 (patch) | |
tree | 3b513b88d9d2ac4cec8baa3351e8d696813266f2 | |
parent | 781514cfb946fb49bc1e2c52f16f808f26856f41 (diff) | |
download | noscript-4e5f12a6c29d6adae8ae1a0236edb9d851846998.tar.gz noscript-4e5f12a6c29d6adae8ae1a0236edb9d851846998.tar.xz noscript-4e5f12a6c29d6adae8ae1a0236edb9d851846998.zip |
Differentiate Chromium restricted URLs (where extensions cannot operate).
-rw-r--r-- | src/lib/restricted.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/lib/restricted.js b/src/lib/restricted.js index b9bddae..840ab69 100644 --- a/src/lib/restricted.js +++ b/src/lib/restricted.js @@ -1,22 +1,22 @@ { // see https://bugzilla.mozilla.org/show_bug.cgi?id=1415644 - let domains = [ - "accounts-static.cdn.mozilla.net", - "accounts.firefox.com", - "addons.cdn.mozilla.net", - "addons.mozilla.org", - "api.accounts.firefox.com", - "content.cdn.mozilla.net", - "content.cdn.mozilla.net", - "discovery.addons.mozilla.org", - "input.mozilla.org", - "install.mozilla.org", - "oauth.accounts.firefox.com", - "profile.accounts.firefox.com", - "support.mozilla.org", - "sync.services.mozilla.com", - "testpilot.firefox.com", - ]; + let domains = UA.isMozilla ? [ + "accounts-static.cdn.mozilla.net", + "accounts.firefox.com", + "addons.cdn.mozilla.net", + "addons.mozilla.org", + "api.accounts.firefox.com", + "content.cdn.mozilla.net", + "content.cdn.mozilla.net", + "discovery.addons.mozilla.org", + "input.mozilla.org", + "install.mozilla.org", + "oauth.accounts.firefox.com", + "profile.accounts.firefox.com", + "support.mozilla.org", + "sync.services.mozilla.com", + "testpilot.firefox.com", + ] : [ "chrome.google.com" ]; function isRestrictedURL(u) { try { |