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

Function isQuestionItem

Zhihu-Enhanced.user.js:1599–1603  ·  view source on GitHub ↗
(hotItem)

Source from the content-addressed store, hash-verified

1597 if (!menu_value('menu_blockTypeLiveHot')) return;
1598
1599 const isQuestionItem = (hotItem) => {
1600 const linkItem = hotItem.querySelector('.HotItem-content a');
1601 if (linkItem === null) return false;
1602 return /\/question\/\d+/.test(linkItem.href);
1603 }
1604
1605 const block = () => {
1606 removeLiveItems();

Callers 1

removeLiveItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected