mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 11:22:38 +01:00
This commit is contained in:
parent
7255a66cd5
commit
86e80d43d6
@ -53,6 +53,20 @@ var µBlock = (function() { // jshint ignore:line
|
|||||||
userResourcesLocation: 'unset'
|
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 {
|
return {
|
||||||
firstInstall: false,
|
firstInstall: false,
|
||||||
|
|
||||||
@ -113,16 +127,7 @@ var µBlock = (function() { // jshint ignore:line
|
|||||||
// Whitelist directives need to be loaded once the PSL is available
|
// Whitelist directives need to be loaded once the PSL is available
|
||||||
netWhitelist: {},
|
netWhitelist: {},
|
||||||
netWhitelistModifyTime: 0,
|
netWhitelistModifyTime: 0,
|
||||||
netWhitelistDefault: [
|
netWhitelistDefault: whitelistDefault.join('\n'),
|
||||||
'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'),
|
|
||||||
|
|
||||||
localSettings: {
|
localSettings: {
|
||||||
blockedRequestCount: 0,
|
blockedRequestCount: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user