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!
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
I just saw this thumbnail and had to meme it:
@niftynei, if you haven’t already, you have achieved meme status
Userscript to never see reply from someone you muted again:
// ==UserScript==
// @name Stacker News - Remove Muted Comments
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Remove muted comments instead of showing 'reply from someone you muted'
// @author ekzyis
// @match https://stacker.news/*
// @grant none
// @run-at document-idle
// ==/UserScript==
(function() {
'use strict';
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 });
})();Oh, it’s just that I forgot to prepare by reading the questions I was sent beforehand that might come up. And even the few things I had prepared to say, I didn’t end up saying them.
I actually had suggestions for NWC, but when it was time to share them, I only said something like, “I can’t imagine anything better than NWC,” lol. That was basically a cowardly lie, because I felt so unprepared.
That’s all. In my mind, I could have done so much better, but thanks for saying it wasn’t embarrassing!
I think my talk was pretty good, but from memory, I really embarrassed myself here
Oh well, it was my first panel, so whatevs ¯\_(ツ)_/¯
Well, it was short-lived fun, my post already disappeared from the front page, haha. Anyway!