MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / registerMenuCommand

Function registerMenuCommand

popup-window/popup-window.user.js:689–693  ·  view source on GitHub ↗
(label, action)

Source from the content-addressed store, hash-verified

687 }
688 let registeredMenuCommands = {}
689 function registerMenuCommand(label, action) {
690 const menuCommandId = GM_registerMenuCommand(label, action)
691 registeredMenuCommands[label] = menuCommandId
692 return menuCommandId
693 }
694 function saveWindowConfig(width, height, left, top, HostName = window.location.hostname) {
695 config.windowWidth = width
696 config.windowHeight = height

Callers 1

updateMenuCommandsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected