MCPcopy Index your code
hub / github.com/XIU2/UserScript / callback

Function callback

Zhihu-Enhanced.user.js:483–493  ·  view source on GitHub ↗
(mutationsList, observer)

Source from the content-addressed store, hash-verified

481
482 // 这个是监听网页插入事件,用来判断后续网页动态插入的元素
483 const callback = (mutationsList, observer) => {
484 for (const mutation of mutationsList) {
485 for (const target of mutation.addedNodes) {
486 if (target.nodeType != 1) return
487 if (target.className === className2) {
488 blockLowCount_1(target,menuUpvote,'upvote_num');
489 blockLowCount_1(target,menuComment,'comment_num');
490 }
491 }
492 }
493 };
494 const observer = new MutationObserver(callback);
495 observer.observe(document, { childList: true, subtree: true });
496 }

Callers

nothing calls this directly

Calls 6

blockLowCount_1Function · 0.85
blockUsers_button_delFunction · 0.85
blockUsers_button_addFunction · 0.85
blockKeywords_1Function · 0.85
filterCommentFunction · 0.85
menu_valueFunction · 0.70

Tested by

no test coverage detected