Hacker News new | ask | show | jobs
by thomassmith65 1454 days ago
I use this in ViolentMonkey

  for (let idiot of ['alice','bob','carol','dick','eve']){
      for ( let a of document.querySelectorAll('a[href="user?id=' + idiot + '"]') ){
          let node = a.parentNode.parentNode.parentNode.parentNode
          if (node.tagName !== 'TABLE') { node.style.display = 'none' }
      } 
  }
1 comments

thank you - I already had GreaseMonkey installed (for old.reddit.com redirection) - wasn't sure if they're compatible but they are - it worked nicely without any modifications - thank you very much. depending on the size of the list this may be cleaner than the ublock origin one - thanks again.
No problem. I can't remember any longer why I excluded 'TABLE' nodes; I think it's to leave the front page alone when it contains posts from the unwanted users. I was only concerned with hiding comments, not links.