pull down to refresh
I just learned that Shield allows you to run custom scriplets!
So if you save this as a custom scriptlet at brave://settings/shields/filters:
window.addEventListener('DOMContentLoaded', () => {
function removeCollapsedComments() {
document.querySelectorAll('div[class*="comment_collapsed"]')
.forEach(node => {
if (node.textContent.startsWith("reply from someone you muted")) node.remove()
}
)
}
// Run on initial page load
removeCollapsedComments();
// Watch for dynamically loaded content
const observer = new MutationObserver(removeCollapsedComments);
observer.observe(document.body, { childList: true, subtree: true });
})and then save this custom filter:
stacker.news##+js(user-stackernews.js)it also works!
reply
Thank you!!!
reply
reply
Got myself a second opinion
reply
reply
Huh? Everyone does this.
reply
reply
It's very useful for when you feel light imposter syndrome and be more certain about your own capabilities.
Is this running on every single site we go to?
reply
reply
There?
reply
On a new line and the script in the section below it.
reply
it also works!
Confirmed.
reply
I have it slated for testing but I won't run it in production because I don't run extensions outside of the built-in brave "shields" thing. Still it's something I would like to have.