MCPcopy
hub / github.com/darkreader/darkreader / getHiddenHighlights

Function getHiddenHighlights

src/background/ui-highlights.ts:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const KEY_UI_HIDDEN_HIGHLIGHTS = 'ui-hidden-highlights';
8
9async function getHiddenHighlights() {
10 const options = await readLocalStorage({[KEY_UI_HIDDEN_HIGHLIGHTS]: [] as string[]});
11 return options[KEY_UI_HIDDEN_HIGHLIGHTS];
12}
13
14async function getHighlightsToShow(): Promise<string[]> {
15 const hiddenHighlights = await getHiddenHighlights();

Callers 3

getHighlightsToShowFunction · 0.85
hideHighlightsFunction · 0.85
restoreHighlightsFunction · 0.85

Calls 1

readLocalStorageFunction · 0.90

Tested by

no test coverage detected