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

Function delatePolls

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

Source from the content-addressed store, hash-verified

527 }
528 // 屏蔽投票贴
529 function delatePolls() {
530 if (!menu_value('menu_delatePolls')) return
531 if (patt_forum.test(location.pathname) || location.search.indexOf('mod=forumdisplay') > -1) {
532 document.querySelectorAll('tbody[id^="normalthread_"] .icn>a>img[alt="投票"]').forEach(function (_this) {
533 _this.parentNode.parentNode.parentNode.parentNode.hidden = true;
534 })
535 }
536 }
537 // 自动翻页
538 function pageLoading() {
539 if (!menu_value('menu_pageLoading')) return

Callers 2

pageLoadingFunction · 0.85

Calls 1

menu_valueFunction · 0.70

Tested by

no test coverage detected