Help

Help > Forum > ユーザー > 「トップポスター」と「最も評判の良い」リストでユーザーを非表示にする

「トップポスター」と「最も評判の良い」リストでユーザーを非表示にする

特定のユーザーを非表示にするには、以下の手順に従ってください トップポスター または 最も評判の高い リスト。

  1. ユーザーのプロフィールを表示する あなたがリストから隠したいもの。
  2. プロファイルの URL は、ユーザ ID である数字で終わります。その番号をメモしておきます。
  3. Website Toolboxアカウントにログインします。
  4. をクリックします 統合 メインメニューのリンク。
  5. をクリックします HTML リンク。
  6. 次の 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>
    
  7. 置換 10026815 手順 2 でメモしたユーザ ID のコードに入力します。複数のユーザーを非表示にするには、複数のユーザー ID を含める方法を示すコード内の例を参照してください。
  8. をクリックします [保存] ボタン。


If you still need help, please contact us.