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

Function block

Hostloc-Enhanced.user.js:320–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 // 监听插入事件(有新的回复主题,点击查看)
319 function blockDOMNodeInserted() {
320 let block = e => {
321 if (e.target.nodeType == 1 && e.target.textContent && e.target.textContent.indexOf('newthread') > -1) {
322 setTimeout(function () {
323 blockUsers('forum'); // 屏蔽用户(黑名单)
324 blockKeywords(); // 屏蔽关键词(帖子标题)
325 }, 100)
326 }
327 }
328 document.addEventListener('DOMNodeInserted', block); // 监听插入事件
329 }
330 // 监听插入事件(预览快速回复带签名)

Callers

nothing calls this directly

Calls 2

blockUsersFunction · 0.70
blockKeywordsFunction · 0.70

Tested by

no test coverage detected