diff --git a/src/js/background.js b/src/js/background.js index 5b489da753462..0139b2286a469 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -63,7 +63,6 @@ const µBlock = (( ) => { // jshint ignore:line extensionUpdateForceReload: false, filterAuthorMode: false, filterOnHeaders: false, - ignoreScriptInjectFilters: false, loggerPopupType: 'popup', manualUpdateAssetFetchPeriod: 500, popupFontSize: 'unset', diff --git a/src/js/scriptlet-filtering.js b/src/js/scriptlet-filtering.js index 2ef28ef3c3480..ad41c508fb07b 100644 --- a/src/js/scriptlet-filtering.js +++ b/src/js/scriptlet-filtering.js @@ -302,7 +302,6 @@ api.retrieve = function(request) { if ( scriptletDB.size === 0 ) { return; } - if ( µb.hiddenSettings.ignoreScriptInjectFilters ) { return; } const reng = µb.redirectEngine; if ( !reng ) { return; } diff --git a/src/js/static-ext-filtering.js b/src/js/static-ext-filtering.js index 4c49a0ee464fd..b9b9f2fd25b22 100644 --- a/src/js/static-ext-filtering.js +++ b/src/js/static-ext-filtering.js @@ -180,12 +180,11 @@ if ( iHn !== undefined ) { do { const strId = this.hostnameSlots[iHn+0]; - if ( this.strSlots[strId >>> this.nBits] === value ) { - if ( (strId & exceptionBit) !== 0 ) { - return false; - } - found = true; + const str = this.strSlots[strId >>> this.nBits]; + if ( (strId & exceptionBit) !== 0 ) { + if ( str === value || str === '' ) { return false; } } + if ( str === value ) { found = true; } iHn = this.hostnameSlots[iHn+1]; } while ( iHn !== 0 ); }