pull down to refresh

Are you running it? Maybe I should make a post about it and upload it as a GitHub Gist for easy installation

It doesn't solve the downzap problem though

I also need to figure out how to run this on iOS, if there's a way at all

101 sats \ 18 replies \ @CindyKate 2h

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.

reply
597 sats \ 17 replies \ @ek 2h

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
201 sats \ 6 replies \ @CindyKate 2h

Thank you!!!

reply
170 sats \ 5 replies \ @ek 2h

No worries!!! I hope you can read JavaScript though, because you shouldn't trust me haha

reply
201 sats \ 4 replies \ @CindyKate 2h

Got myself a second opinion

reply
170 sats \ 3 replies \ @ek 2h

Wow, impressive use of ChatGPT

reply
155 sats \ 2 replies \ @CindyKate 2h

Huh? Everyone does this.

reply
170 sats \ 1 reply \ @ek 1h

First time I’ve seen someone do that!

101 sats \ 6 replies \ @jakoyoh629 1h

Is this running on every single site we go to?

reply
201 sats \ 2 replies \ @ek 1h

No, the custom filter scopes it to stacker.news

reply
170 sats \ 1 reply \ @jakoyoh629 1h

stacker.news##+js(user-stackernews.js)

This line handles that? Thanks

reply
123 sats \ 0 replies \ @ek 1h

Yes!

reply
24 sats \ 2 replies \ @optimism 1h

only what you specify in the custom filter.

reply
170 sats \ 1 reply \ @jakoyoh629 1h

There?

reply

On a new line and the script in the section below it.

reply
101 sats \ 0 replies \ @CindyKate 1h
it also works!

Confirmed.

reply
70 sats \ 1 reply \ @optimism 1h

This is why we must tag @ek more often - I just got rid of Wildmonkey.

Thanks ek.

reply
101 sats \ 0 replies \ @ek 20m

reply
70 sats \ 0 replies \ @optimism 2h

Yes and it works. I needed to get rid of the urge to click these.

reply