mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Improve xml-prune
scriptlet
Related issue: https://github.com/uBlockOrigin/uAssets/issues/21532
This commit is contained in:
parent
a770ed957b
commit
d7063a052f
@ -2977,6 +2977,9 @@ function xmlPrune(
|
|||||||
type === '' && thisArg.responseXML instanceof XMLDocument
|
type === '' && thisArg.responseXML instanceof XMLDocument
|
||||||
) {
|
) {
|
||||||
pruneFromDoc(thisArg.responseXML);
|
pruneFromDoc(thisArg.responseXML);
|
||||||
|
const serializer = new XMLSerializer();
|
||||||
|
const textout = serializer.serializeToString(thisArg.responseXML);
|
||||||
|
Object.defineProperty(thisArg, 'responseText', { value: textout });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user