Skip to content

Commit bc8c1d0

Browse files
committed
Remove advanced setting ignoreScriptInjectFilters
This advanced setting is not really needed, as the same can be accomplished with a broad exception filter such as `#@#+js()`. Related feedback: - f5b453f#commitcomment-49499082
1 parent 83c4dc3 commit bc8c1d0

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/js/background.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const µBlock = (( ) => { // jshint ignore:line
6363
extensionUpdateForceReload: false,
6464
filterAuthorMode: false,
6565
filterOnHeaders: false,
66-
ignoreScriptInjectFilters: false,
6766
loggerPopupType: 'popup',
6867
manualUpdateAssetFetchPeriod: 500,
6968
popupFontSize: 'unset',

src/js/scriptlet-filtering.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@
302302

303303
api.retrieve = function(request) {
304304
if ( scriptletDB.size === 0 ) { return; }
305-
if ( µb.hiddenSettings.ignoreScriptInjectFilters ) { return; }
306305

307306
const reng = µb.redirectEngine;
308307
if ( !reng ) { return; }

src/js/static-ext-filtering.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,11 @@
180180
if ( iHn !== undefined ) {
181181
do {
182182
const strId = this.hostnameSlots[iHn+0];
183-
if ( this.strSlots[strId >>> this.nBits] === value ) {
184-
if ( (strId & exceptionBit) !== 0 ) {
185-
return false;
186-
}
187-
found = true;
183+
const str = this.strSlots[strId >>> this.nBits];
184+
if ( (strId & exceptionBit) !== 0 ) {
185+
if ( str === value || str === '' ) { return false; }
188186
}
187+
if ( str === value ) { found = true; }
189188
iHn = this.hostnameSlots[iHn+1];
190189
} while ( iHn !== 0 );
191190
}

0 commit comments

Comments
 (0)