MCPcopy Index your code
hub / github.com/darkreader/darkreader / checkMatch

Function checkMatch

src/inject/detector.ts:210–217  ·  view source on GitHub ↗
(target: Element)

Source from the content-addressed store, hash-verified

208 const matchSelector = (hint.match || []).join(', ');
209
210 function checkMatch(target: Element) {
211 if (target.matches?.(matchSelector)) {
212 stopDetectingUsingHint();
213 success();
214 return true;
215 }
216 return false;
217 }
218
219 function setupMatchObserver(target: Element) {
220 hintMatchObserver?.disconnect();

Callers 1

setupMatchObserverFunction · 0.85

Calls 2

stopDetectingUsingHintFunction · 0.85
successFunction · 0.85

Tested by

no test coverage detected