MCPcopy Create free account
hub / github.com/027xiguapi/code-box / createLinkObserver

Function createLinkObserver

contents/weixin.tsx:94–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94const createLinkObserver = () => {
95 const observer = new MutationObserver((mutations) => {
96 mutations.forEach((mutation) => {
97 formatLinks(mutation.target, mutation.addedNodes)
98 mutation.addedNodes.forEach((node) => queryChildElements(node))
99 })
100 })
101
102 return observer
103}
104
105const observer = createLinkObserver()
106observer.observe(document, {

Callers 1

weixin.tsxFile · 0.85

Calls 2

formatLinksFunction · 0.85
queryChildElementsFunction · 0.85

Tested by

no test coverage detected