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

Function nexusmods_bF

Autopage.user.js:1455–1468  ·  view source on GitHub ↗
(pageE)

Source from the content-addressed store, hash-verified

1453 }
1454 // [NexusMods] 的插入前函数(隐藏底部元素)
1455 function nexusmods_bF(pageE) {
1456 pageE.forEach(function (one) {
1457 let now = one.querySelector('.mod-tile-left');
1458 if (now) {
1459 let downloadCount = now.querySelector('.downloadcount > span.flex-label');
1460 if (downloadCount) {
1461 if (GlobalModStats[now.dataset.gameId] && GlobalModStats[now.dataset.gameId][now.dataset.modId]) {
1462 downloadCount.textContent = shortFormat(parseInt(GlobalModStats[now.dataset.gameId][now.dataset.modId].total));
1463 }
1464 }
1465 }
1466 });
1467 return pageE
1468 }
1469
1470
1471 // [Mangabz 漫画] 初始化(调整本话图片)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected