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

Function buildDisableKeyPattern

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

Source from the content-addressed store, hash-verified

28434 }
28435 });
28436 function buildDisableKeyPattern() {
28437 let originPattern = location.origin.replace(/^https?/, "https?").replace(/\./g, "\\.");
28438 let pathBase = location.pathname.replace(/[^\/]*$/, "");
28439 return "^" + originPattern + pathBase;
28440 }
28441 function isDisableKeyPatternMatched() {
28442 let pattern = buildDisableKeyPattern();
28443 let list = normalizeDisableKeySites(prefs.floatBar.disableKeySites);

Callers 2

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected