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

Function fixItemRank

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

Source from the content-addressed store, hash-verified

1617
1618 // 修复排行榜序号
1619 const fixItemRank = () => {
1620 const hotItems = document.querySelectorAll('.HotList-list .HotItem:not([hidden])');
1621 hotItems.forEach((item, index) => {
1622 const rank = item.querySelector('.HotItem-index .HotItem-rank');
1623 if (rank !== null) rank.innerText = index + 1;
1624 });
1625 }
1626
1627 const blockLive_content = (mutationsList, observer) => {
1628 for (const mutation of mutationsList) {

Callers 1

blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected