mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Also remove text node in :remove() operator
Related discussion: - https://github.com/gorhill/uBO-Extra/issues/119#issuecomment-537842967 As an incidental side effect, this may or may not prevent execution of the content of some inline script tags.
This commit is contained in:
parent
0f33f2386d
commit
2cbbc30084
1 changed files with 1 additions and 0 deletions
|
|
@ -813,6 +813,7 @@ vAPI.DOMFilterer = (function() {
|
|||
|
||||
removeNodes(nodes) {
|
||||
for ( const node of nodes ) {
|
||||
node.textContent = '';
|
||||
node.remove();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue