Skip to content

Commit

Permalink
Remove advanced setting ignoreScriptInjectFilters
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gorhill committed Apr 14, 2021
1 parent 83c4dc3 commit bc8c1d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const µBlock = (( ) => { // jshint ignore:line
extensionUpdateForceReload: false,
filterAuthorMode: false,
filterOnHeaders: false,
ignoreScriptInjectFilters: false,
loggerPopupType: 'popup',
manualUpdateAssetFetchPeriod: 500,
popupFontSize: 'unset',
Expand Down
1 change: 0 additions & 1 deletion src/js/scriptlet-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
9 changes: 4 additions & 5 deletions src/js/static-ext-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit bc8c1d0

Please sign in to comment.