A few days ago, I created a userscript to never see 'reply from someone you muted' again.

Due to the popular demand here of three other stackers, I decided it's worth making it easier to install and writing a post about it.

I still have to figure out if there's a way to run this in the PWA, too.


mutenuke

Never see 'reply from someone you muted' on Stacker News again.

Installation via userscript extension

  1. Install a userscript extension like Tampermonkey
  2. Go to the mutenuke page on GreasyFork
  3. Click "Install this script"

Installation via Brave Shields

On Brave, you don't need a userscript extension. You can run custom scriptlets within Shields as mentioned here!

  1. Go to brave://settings/shields/filters
  2. Enable developer mode
  3. Save this as a new custom scriptlet named 'mutenuke':
window.addEventListener('DOMContentLoaded', () => {
    function mutenuke() {
        document.querySelectorAll('div[class*="comment_collapsed"]')
            .forEach(node => {
                if (node.textContent.startsWith("reply from someone you muted")) node.remove()
            }
        )
    }

    // Run on initial page load
    mutenuke();

    // Watch for dynamically loaded content
    const observer = new MutationObserver(mutenuke);
    observer.observe(document.body, { childList: true, subtree: true });
})
  1. Save this as a new custom filter:
stacker.news##+js(user-mutenuke.js)

Done!

Installation via Brave Shields will cause React hydration errors, but as far as I know, it doesn't impact the functionality of the site.