MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / onceExec

Function onceExec

script-components/components/src/setting/panel.ts:812–835  ·  view source on GitHub ↗

* 根据key执行一次,该key不会和execMenu|exec|execMenuOnce已执行的key冲突 * @param key 键 * @param callback 回调 * @param runWithMenuEnable 是否根据`key`在menu中是否符合开启状态来执行此menu,如果是多个key,那么必须都`enable`才会执行回调

(key: string | string[], callback: () => void, runWithMenuEnable: boolean = false)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

callbackFunction · 0.70
getValueMethod · 0.65
setMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected