MCPcopy
hub / github.com/darkreader/darkreader / applyInversionFixes

Method applyInversionFixes

src/background/devtools.ts:245–251  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

243 }
244
245 private static applyInversionFixes(text: string) {
246 const formatted = formatInversionFixes(parseInversionFixes(text));
247 ConfigManager.overrides.inversionFixes = formatted;
248 ConfigManager.handleInversionFixes();
249 DevTools.saveInversionFixes(formatted);
250 DevTools.onChange();
251 }
252
253 private static async getSavedStaticThemes(): Promise<string | null> {
254 return DevTools.store.get(DevTools.KEY_STATIC);

Callers

nothing calls this directly

Calls 5

formatInversionFixesFunction · 0.90
parseInversionFixesFunction · 0.90
handleInversionFixesMethod · 0.80
saveInversionFixesMethod · 0.80
onChangeMethod · 0.80

Tested by

no test coverage detected