MCPcopy Create free account
hub / github.com/zxlie/FeHelper / injectMonkey

Function injectMonkey

apps/background/monkey.js:430–437  ·  view source on GitHub ↗
(tabId, frameId, monkey)

Source from the content-addressed store, hash-verified

428};
429
430const injectMonkey = (tabId, frameId, monkey) => {
431 let allFrames = !!monkey.mAllFrames;
432 if (monkey.mStyle && monkey.mStyle.trim()) {
433 _injectCss(tabId, allFrames, frameId, monkey.mStyle, monkey);
434 }
435 _injectScript(tabId, frameId, monkey);
436 _hit(monkey.id);
437};
438
439/* ================== 命中计数 ================== */
440let _hitTimer = null;

Callers 1

startFunction · 0.85

Calls 3

_injectCssFunction · 0.85
_injectScriptFunction · 0.85
_hitFunction · 0.85

Tested by

no test coverage detected