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

Function override

src/inject/dynamic-theme/stylesheet-proxy.ts:48–50  ·  view source on GitHub ↗
(cls: {prototype: T}, prop: P, factory: OverrideFactory<T, P>)

Source from the content-addressed store, hash-verified

46 }
47
48 function override<T, P extends keyof T>(cls: {prototype: T}, prop: P, factory: OverrideFactory<T, P>) {
49 overrideProperty(cls, prop, {value: factory});
50 }
51
52 function isDRElement(element?: Element) {
53 return element?.classList?.contains('darkreader');

Callers 1

injectProxyFunction · 0.85

Calls 1

overridePropertyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…