MCPcopy Create free account
hub / github.com/hoothin/UserScripts / isDisableKeyPatternMatched

Function isDisableKeyPatternMatched

Picviewer CE+/Picviewer CE+.user.js:28441–28445  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28439 return "^" + originPattern + pathBase;
28440 }
28441 function isDisableKeyPatternMatched() {
28442 let pattern = buildDisableKeyPattern();
28443 let list = normalizeDisableKeySites(prefs.floatBar.disableKeySites);
28444 return list.indexOf(pattern) !== -1;
28445 }
28446 _GM_registerMenuCommand(
28447 isDisableKeyPatternMatched() ? i18n("restoreKeyForHost") : i18n("disableKeyForHost"),
28448 () => {

Callers 1

initFunction · 0.70

Calls 2

buildDisableKeyPatternFunction · 0.70
normalizeDisableKeySitesFunction · 0.70

Tested by

no test coverage detected