mutenuke: never see 'reply from someone you muted' again
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
- Install a userscript extension like Tampermonkey
- Go to the mutenuke page on GreasyFork
- 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!
- Go to brave://settings/shields/filters
- Enable developer mode
- 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 });
})
- 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.