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

Function regularPath

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

Source from the content-addressed store, hash-verified

17}
18
19function regularPath() {
20 const argString = document.currentScript!.dataset.arg;
21 if (argString !== undefined) {
22 document.documentElement.dataset[key] = 'true';
23 const args: {enableStyleSheetsProxy: boolean; enableCustomElementRegistryProxy: boolean} = JSON.parse(argString);
24 logInfo(`MV3 proxy injector: regular path runs injectProxy(${argString}).`);
25 injectProxyAndCleanup(args);
26 }
27}
28
29function dataReceiver(e: any) {
30 document.removeEventListener(EVENT_ARG, dataReceiver);

Callers 1

injectFunction · 0.85

Calls 2

logInfoFunction · 0.90
injectProxyAndCleanupFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…