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

Function delate255

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

Source from the content-addressed store, hash-verified

516 }
517 // 屏蔽阅读权限 255 的帖子
518 function delate255() {
519 if (!menu_value('menu_delate255')) return
520 if (patt_forum.test(location.pathname) || location.search.indexOf('mod=forumdisplay') > -1) {
521 document.querySelectorAll('tbody[id^="normalthread_"] .xw1').forEach(function (_this) {
522 if (_this.textContent === '255') {
523 _this.parentNode.parentNode.parentNode.hidden = true;
524 }
525 })
526 }
527 }
528 // 屏蔽投票贴
529 function delatePolls() {
530 if (!menu_value('menu_delatePolls')) return

Callers 2

pageLoadingFunction · 0.85

Calls 1

menu_valueFunction · 0.70

Tested by

no test coverage detected