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

Function blockYanXuan_question

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

Source from the content-addressed store, hash-verified

1217function blockYanXuan() {
1218 if (!menu_value('menu_blockYanXuan')) return
1219 const blockYanXuan_question = (mutationsList, observer) => {
1220 for (const mutation of mutationsList) {
1221 for (const target of mutation.addedNodes) {
1222 if (target.nodeType != 1) return
1223 if (target.className === 'List-item' || target.className === 'Card AnswerCard') {
1224 if (target.querySelector('.KfeCollection-AnswerTopCard-Container, .KfeCollection-PurchaseBtn')) {
1225 target.hidden = true;
1226 }
1227 }
1228 }
1229 }
1230 };
1231
1232 const blockYanXuan_question_answer = (mutationsList, observer) => {
1233 for (const mutation of mutationsList) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected