/**
 *
 * Discogs Enhancer
 *
 * @author: Matthew Salcido
 * @website: http://www.msalcido.com
 * @github: https://github.com/salcido
 *
 * ---------------------------------------------------------------------------
 * Overview ãŠ™
 * ---------------------------------------------------------------------------
 *
 * This will count the number of friends you have in your friend list.
 * It is always enabled when using this extension and it's not listed as a
 * feature. I personally find it useful but I'm not sure it has much value
 * for anyone else so it's a secret to everybody!
 */

rl.ready(() => {

  let count = document.querySelectorAll('.linked_username').length;

  if ( rl.pageIs('friends') && count ) {

    document.querySelector('#page_content h1').textContent += ` (${count})`;
  }
});
