()
| 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 | () => { |
no test coverage detected