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:
- f5b453fae3 (commitcomment-49499082)
This commit is contained in:
Raymond Hill 2021-04-14 10:56:04 -04:00
parent 83c4dc3bac
commit bc8c1d00ad
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 4 additions and 7 deletions

View File

@ -63,7 +63,6 @@ const µBlock = (( ) => { // jshint ignore:line
extensionUpdateForceReload: false,
filterAuthorMode: false,
filterOnHeaders: false,
ignoreScriptInjectFilters: false,
loggerPopupType: 'popup',
manualUpdateAssetFetchPeriod: 500,
popupFontSize: 'unset',

View File

@ -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; }

View File

@ -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 );
}