mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3][safari] Remove image from removeparam
Revert https://github.com/gorhill/uBlock/commit/7aff7da77d for Safari.
This commit is contained in:
parent
916d2af99f
commit
1ec05d4c0a
1 changed files with 2 additions and 1 deletions
|
|
@ -45,10 +45,11 @@ function patchRule(rule, out) {
|
|||
if ( copy.action.type === 'modifyHeaders' ) { return; }
|
||||
if ( Array.isArray(copy.condition.responseHeaders) ) { return; }
|
||||
// https://github.com/uBlockOrigin/uBOL-home/issues/476#issuecomment-3299309478
|
||||
// https://github.com/uBlockOrigin/uBOL-home/issues/608
|
||||
if ( copy.action.redirect?.transform?.queryTransform?.removeParams ) {
|
||||
const resourceTypes = condition.resourceTypes;
|
||||
if ( resourceTypes?.includes('main_frame') ) {
|
||||
condition.resourceTypes = resourceTypes.filter(a => a !== 'main_frame');
|
||||
condition.resourceTypes = resourceTypes.filter(a => a !== 'main_frame' && a !== 'image');
|
||||
if ( condition.resourceTypes.length === 0 ) { return; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue