MCPcopy
hub / github.com/darkreader/darkreader / url.tests.ts

File url.tests.ts

tests/inject/utils/url.tests.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type {UserSettings} from '../../../src/definitions';
2import {isURLEnabled, isURLMatched, isPDF, getURLHostOrProtocol, getAbsoluteURL} from '../../../src/utils/url';
3
4it('URL is enabled', () => {

Callers

nothing calls this directly

Calls 6

isURLEnabledFunction · 0.90
isPDFFunction · 0.90
isURLMatchedFunction · 0.90
getURLHostOrProtocolFunction · 0.90
getAbsoluteURLFunction · 0.90
fillUserSettingsFunction · 0.85

Tested by

no test coverage detected