MCPcopy
hub / github.com/ChinaGodMan/UserScripts / callback

Function callback

highlight-keywords/highlight-keywords.user.js:486–494  ·  view source on GitHub ↗
(mutationsList, observer)

Source from the content-addressed store, hash-verified

484
485 // 当观察到变动时执行的回调函数
486 const callback = function (mutationsList, observer) {
487 let nodeMap = new Map
488 setTimeout(() => {
489 mutationsList.forEach(node => { nodeMap.set(node.target) })
490 nodeMap.forEach((value, node) => {
491 doOnce(node)
492 })
493 }, 1)
494 }
495
496 // 创建一个观察器实例并传入回调函数
497 const observer = new MutationObserver(callback)

Callers 14

handleScriptPageFunction · 0.85
tryDownloadFunction · 0.85
observeUrlChangesFunction · 0.85
observeUrlChangesFunction · 0.85
observeUrlChangesFunction · 0.85
observeUrlChangesFunction · 0.85
observeUrlChangesFunction · 0.85
waitForElementFunction · 0.85
observeUrlChangesFunction · 0.85
checkIfCompleteFunction · 0.85
downloadAllZipsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected