MCPcopy
hub / github.com/darkreader/darkreader / collectDevToolsData

Method collectDevToolsData

src/background/extension.ts:425–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423 }
424
425 static async collectDevToolsData(): Promise<DevToolsData> {
426 const [
427 detector,
428 dynamic,
429 filter,
430 staticThemesText,
431 ] = await Promise.all([
432 DevTools.getDetectorHintsText(),
433 DevTools.getDynamicThemeFixesText(),
434 DevTools.getInversionFixesText(),
435 DevTools.getStaticThemesText(),
436 ]);
437 return {
438 detector,
439 dynamic,
440 filter,
441 static: staticThemesText,
442 };
443 }
444
445 private static async getActiveTabInfo(): Promise<TabInfo> {
446 await Extension.loadData();

Callers 3

getMessengerAdapterMethod · 0.80
firefoxPortListenerMethod · 0.80
onUIMessageMethod · 0.80

Calls 5

allMethod · 0.80
getDetectorHintsTextMethod · 0.80
getInversionFixesTextMethod · 0.80
getStaticThemesTextMethod · 0.80

Tested by

no test coverage detected