MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / sendCmd

Function sendCmd

src/injected/content/util.js:104–109  ·  view source on GitHub ↗
(cmd, data, options)

Source from the content-addressed store, hash-verified

102 * @return {Promise}
103 */
104export const sendCmd = (cmd, data, options) => sendMessage({
105 cmd,
106 data,
107 url: location.href, // to replace MessageSender.url which doesn't change on soft navigation
108 [kTop]: topRenderMode,
109}, options);

Callers 14

index.jsFile · 0.90
closeSelfFunction · 0.90
initFunction · 0.90
HttpRequestFunction · 0.90
HttpRequestedFunction · 0.90
requestVirtualUrlFunction · 0.90
onHandleFunction · 0.90
TabOpenFunction · 0.90
TabCloseFunction · 0.90
sendFeedbackFunction · 0.90
NotificationFunction · 0.90
RemoveNotificationFunction · 0.90

Calls 1

sendMessageFunction · 0.90

Tested by

no test coverage detected