1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Adjustments to LocalCDN

This commit is contained in:
nobody
2020-07-04 07:38:59 +02:00
parent 30e36abd72
commit 3f5738fb3b
3 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ const Address = {
'ANY_PROTOCOL': '*://', 'ANY_PROTOCOL': '*://',
'CHROME': 'chrome:', 'CHROME': 'chrome:',
'CHROME_EXTENSION': 'chrome-extension:', 'CHROME_EXTENSION': 'chrome-extension:',
'DECENTRALEYES': 'localcdn.de', 'LOCALCDN': 'localcdn.de',
'EXAMPLE': 'example.org', 'EXAMPLE': 'example.org',
'HTTP': 'http:', 'HTTP': 'http:',
'HTTPS': 'https:', 'HTTPS': 'https:',

View File

@@ -130,7 +130,7 @@ interceptor._handleStorageChanged = function (changes) {
*/ */
interceptor.amountInjected = 0; interceptor.amountInjected = 0;
interceptor.xhrTestDomain = Address.DECENTRALEYES; interceptor.xhrTestDomain = Address.LOCALCDN;
interceptor.blockMissing = false; interceptor.blockMissing = false;
interceptor.blockGoogleFonts = true; interceptor.blockGoogleFonts = true;
@@ -143,7 +143,7 @@ interceptor.relatedSettings.push(Setting.BLOCK_MISSING);
chrome.storage.sync.get(interceptor.relatedSettings, function (items) { chrome.storage.sync.get(interceptor.relatedSettings, function (items) {
interceptor.amountInjected = items.amountInjected || 0; interceptor.amountInjected = items.amountInjected || 0;
interceptor.xhrTestDomain = items.xhrTestDomain || Address.DECENTRALEYES; interceptor.xhrTestDomain = items.xhrTestDomain || Address.LOCALCDN;
interceptor.blockMissing = items.blockMissing || false; interceptor.blockMissing = items.blockMissing || false;
interceptor.blockGoogleFonts = items.blockGoogleFonts || true; interceptor.blockGoogleFonts = items.blockGoogleFonts || true;
}); });

View File

@@ -31,7 +31,7 @@ var main = {};
main._initializeSettings = function () { main._initializeSettings = function () {
let settingDefaults = { let settingDefaults = {
[Setting.XHR_TEST_DOMAIN]: Address.DECENTRALEYES, [Setting.XHR_TEST_DOMAIN]: Address.LOCALCDN,
[Setting.SHOW_ICON_BADGE]: true, [Setting.SHOW_ICON_BADGE]: true,
[Setting.BLOCK_MISSING]: false, [Setting.BLOCK_MISSING]: false,
[Setting.DISABLE_PREFETCH]: true, [Setting.DISABLE_PREFETCH]: true,