Help > Forum > 用户 > 在 “热门海报” 和 “最受好评” 列表中隐藏用户
在 “热门海报” 和 “最受好评” 列表中隐藏用户
按照以下说明将特定用户隐藏 热门海报 要么 最有名气的 清单。
- 查看用户的个人资料 你想从清单中隐藏。
- 个人资料 URL 以数字结尾,即用户 ID。记下这个数字。
- 登录您的Website Toolbox账户。
- 点击 整合 主菜单中的链接。
- 点击 HTML 链接。
- 将以下 JavaScript 代码插入到 头部标记 文本框:
<script> (function () { // Replace the ID(s) below with ID(s) of the users you want to hide from the Top Posters and Most Reputed lists const hiddenUserIds = ['10026815']; // Here is an example of how you could list multiple user IDs above: // const hiddenUserIds = ['10026815','10012345','10054321']; function hideSelf() { document.querySelectorAll('a[href*="/profile/"]').forEach(a => { const href = a.getAttribute('href') || a.href || ''; hiddenUserIds.forEach(id => { if (href.includes('/profile/' + id)) { const card = a.closest('.member, .user, .user-card, .row, li, .grid-item'); if (card) card.style.display = 'none'; } }); }); } hideSelf(); new MutationObserver(hideSelf).observe(document.documentElement, { childList: true, subtree: true }); })(); </script> - 替换
10026815在带有您在步骤 2 中记下的用户 ID 的代码中。要隐藏多个用户,请参阅代码中显示如何包含多个用户 ID 的示例。 - 点击 保存 按钮。
If you still need help, please contact us.