MCPcopy Create free account
hub / github.com/XIU2/UserScript / blockLive_content

Function blockLive_content

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

Source from the content-addressed store, hash-verified

1625 }
1626
1627 const blockLive_content = (mutationsList, observer) => {
1628 for (const mutation of mutationsList) {
1629 for (const target of mutation.addedNodes) {
1630 if (target.classList.contains('.HotItem')) {
1631 block();
1632 }
1633 }
1634 }
1635 }
1636
1637 const observer = new MutationObserver(blockLive_content);
1638 observer.observe(document, { childList: true, subtree: true });

Callers

nothing calls this directly

Calls 1

blockFunction · 0.70

Tested by

no test coverage detected