MCPcopy Index your code
hub / github.com/darkreader/darkreader / inject

Function inject

src/inject/dynamic-theme/mv3-proxy.ts:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57function inject() {
58 if (document.documentElement.dataset[key] !== undefined) {
59 logInfo('MV3 proxy injector: proxy exits because everything is done.');
60 return;
61 }
62 logInfo('MV3 proxy injector: proxy attempts to inject...');
63 document.currentScript && regularPath();
64 dedicatedPath();
65}
66
67inject();

Callers 1

mv3-proxy.tsFile · 0.85

Calls 3

logInfoFunction · 0.90
regularPathFunction · 0.85
dedicatedPathFunction · 0.85

Tested by

no test coverage detected