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

Function removeLiveItems

Zhihu-Enhanced.user.js:1611–1616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1609
1610 // 移除非问题的内容
1611 const removeLiveItems = () => {
1612 const hotItems = document.querySelectorAll('.HotList-list .HotItem');
1613 for (const item of hotItems) {
1614 if (!isQuestionItem(item)) item.remove();
1615 }
1616 }
1617
1618 // 修复排行榜序号
1619 const fixItemRank = () => {

Callers 1

blockFunction · 0.85

Calls 1

isQuestionItemFunction · 0.85

Tested by

no test coverage detected