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

Function blockDOMNodeInserted

Hostloc-Enhanced.user.js:319–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317 }
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 // 监听插入事件(预览快速回复带签名)
331 function vfastpostDOMNodeInserted() {
332 let vfastpost = e => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected