MCPcopy
hub / github.com/philc/vimium / isEnabledForUrl

Function isEnabledForUrl

background_scripts/exclusions.js:58–64  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

56}
57
58export function isEnabledForUrl(url) {
59 const rule = getRule(url);
60 return {
61 isEnabledForUrl: !rule || (rule.passKeys.length > 0),
62 passKeys: rule ? rule.passKeys : "",
63 };
64}
65
66function setRules(rules) {
67 // Callers map a rule to null to have it deleted, and rules without a pattern are useless.

Callers

nothing calls this directly

Calls 1

getRuleFunction · 0.85

Tested by

no test coverage detected