mirror of https://github.com/gorhill/uBlock.git
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:
parent
83c4dc3bac
commit
bc8c1d00ad
|
@ -63,7 +63,6 @@ const µBlock = (( ) => { // jshint ignore:line
|
||||||
extensionUpdateForceReload: false,
|
extensionUpdateForceReload: false,
|
||||||
filterAuthorMode: false,
|
filterAuthorMode: false,
|
||||||
filterOnHeaders: false,
|
filterOnHeaders: false,
|
||||||
ignoreScriptInjectFilters: false,
|
|
||||||
loggerPopupType: 'popup',
|
loggerPopupType: 'popup',
|
||||||
manualUpdateAssetFetchPeriod: 500,
|
manualUpdateAssetFetchPeriod: 500,
|
||||||
popupFontSize: 'unset',
|
popupFontSize: 'unset',
|
||||||
|
|
|
@ -302,7 +302,6 @@
|
||||||
|
|
||||||
api.retrieve = function(request) {
|
api.retrieve = function(request) {
|
||||||
if ( scriptletDB.size === 0 ) { return; }
|
if ( scriptletDB.size === 0 ) { return; }
|
||||||
if ( µb.hiddenSettings.ignoreScriptInjectFilters ) { return; }
|
|
||||||
|
|
||||||
const reng = µb.redirectEngine;
|
const reng = µb.redirectEngine;
|
||||||
if ( !reng ) { return; }
|
if ( !reng ) { return; }
|
||||||
|
|
|
@ -180,12 +180,11 @@
|
||||||
if ( iHn !== undefined ) {
|
if ( iHn !== undefined ) {
|
||||||
do {
|
do {
|
||||||
const strId = this.hostnameSlots[iHn+0];
|
const strId = this.hostnameSlots[iHn+0];
|
||||||
if ( this.strSlots[strId >>> this.nBits] === value ) {
|
const str = this.strSlots[strId >>> this.nBits];
|
||||||
if ( (strId & exceptionBit) !== 0 ) {
|
if ( (strId & exceptionBit) !== 0 ) {
|
||||||
return false;
|
if ( str === value || str === '' ) { return false; }
|
||||||
}
|
|
||||||
found = true;
|
|
||||||
}
|
}
|
||||||
|
if ( str === value ) { found = true; }
|
||||||
iHn = this.hostnameSlots[iHn+1];
|
iHn = this.hostnameSlots[iHn+1];
|
||||||
} while ( iHn !== 0 );
|
} while ( iHn !== 0 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue