MCPcopy
hub / github.com/darkreader/darkreader / applyDetectorHints

Method applyDetectorHints

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

Source from the content-addressed store, hash-verified

177 }
178
179 private static applyDetectorHints(text: string): any {
180 const formatted = formatDetectorHints(parseDetectorHints(text));
181 ConfigManager.overrides.detectorHints = formatted;
182 ConfigManager.handleDetectorHints();
183 DevTools.saveDetectorHints(formatted);
184 DevTools.onChange();
185 }
186
187 private static async getSavedDynamicThemeFixes() {
188 return DevTools.store.get(DevTools.KEY_DYNAMIC);

Callers

nothing calls this directly

Calls 5

formatDetectorHintsFunction · 0.90
parseDetectorHintsFunction · 0.90
handleDetectorHintsMethod · 0.80
saveDetectorHintsMethod · 0.80
onChangeMethod · 0.80

Tested by

no test coverage detected