MCPcopy Create free account
hub / github.com/darkreader/darkreader / isDRElement

Function isDRElement

src/inject/dynamic-theme/stylesheet-proxy.ts:52–54  ·  view source on GitHub ↗
(element?: Element)

Source from the content-addressed store, hash-verified

50 }
51
52 function isDRElement(element?: Element) {
53 return element?.classList?.contains('darkreader');
54 }
55
56 function isDRSheet(sheet: CSSStyleSheet) {
57 return isDRElement(sheet.ownerNode as Element);

Callers 3

isDRSheetFunction · 0.85
getCurrentElementValueFunction · 0.85
injectProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…