1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 01:59:38 +02:00
Raymond Hill 2018-04-20 11:26:11 -04:00
parent 7255a66cd5
commit 86e80d43d6
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -53,6 +53,20 @@ var µBlock = (function() { // jshint ignore:line
userResourcesLocation: 'unset'
};
var whitelistDefault = [
'about-scheme',
'chrome-extension-scheme',
'chrome-scheme',
'moz-extension-scheme',
'opera-scheme',
'vivaldi-scheme',
'wyciwyg-scheme', // Firefox's "What-You-Cache-Is-What-You-Get"
];
// https://github.com/gorhill/uBlock/issues/3693#issuecomment-379782428
if ( vAPI.webextFlavor.soup.has('webext') === false ) {
whitelistDefault.push('behind-the-scene');
}
return {
firstInstall: false,
@ -113,16 +127,7 @@ var µBlock = (function() { // jshint ignore:line
// Whitelist directives need to be loaded once the PSL is available
netWhitelist: {},
netWhitelistModifyTime: 0,
netWhitelistDefault: [
'about-scheme',
'chrome-extension-scheme',
'chrome-scheme',
'moz-extension-scheme',
'opera-scheme',
'vivaldi-scheme',
'wyciwyg-scheme', // Firefox's "What-You-Cache-Is-What-You-Get"
''
].join('\n'),
netWhitelistDefault: whitelistDefault.join('\n'),
localSettings: {
blockedRequestCount: 0,