MCPcopy
hub / github.com/darkreader/darkreader / removeNode

Function removeNode

src/inject/utils/dom.ts:72–74  ·  view source on GitHub ↗
(node: Node | null)

Source from the content-addressed store, hash-verified

70}
71
72export function removeNode(node: Node | null): void {
73 node && node.parentNode && node.parentNode.removeChild(node);
74}
75
76export function watchForNodePosition<T extends Node>(
77 node: T,

Callers 7

removeSVGFilterFunction · 0.90
removeStyleFunction · 0.90
readyFunction · 0.90
removeProxyFunction · 0.90
removeDynamicThemeFunction · 0.90
destroyFunction · 0.90
fixes.tests.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected