MCPcopy
hub / github.com/darkreader/darkreader / removeStyleContainer

Function removeStyleContainer

src/inject/dynamic-theme/injection.ts:67–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65let containerObserver: MutationObserver;
66
67export function removeStyleContainer() {
68 bodyObserver?.disconnect();
69 containerObserver?.disconnect();
70 document.querySelector('.darkreader-style-container')?.remove();
71}

Callers 1

removeDynamicThemeFunction · 0.90

Calls 2

disconnectMethod · 0.80
removeMethod · 0.65

Tested by

no test coverage detected