Help

Help > Forum > Users > Hide a user on the Top Posters and Most Reputed lists

Hide a user on the Top Posters and Most Reputed lists

Follow the instructions below to hide specific users from the Top Posters or Most Reputed lists.

  1. View the profile of the user that you want to hide from the lists.
  2. The profile URL ends with a number, which is the user ID. Make a note of that number.
  3. Log in to your Website Toolbox account.
  4. Click the Integrate link in the main menu.
  5. Click the HTML link.
  6. Insert the following JavaScript code into the Head Tag textbox:

    <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. Replace 10026815 in the code with the user ID that you made note of in step 2. To hide more than one user, refer to the example in the code that shows how to include multiple user IDs.
  8. Click the Save button.


If you still need help, please contact us.