Urban75 Home About Offline BrixtonBuzz Contact

Looking for extension to block Coronavirus news/mentions

wtfftw

melting like a toastie
I don't want to worry about this shit and the constant exposure to mentions across the internet be it scaremongering headlines or whatever is eroding my capability.

So. Is there some sort of chrome extension or whatever that means I can block something like this? I'm thinking like a spoiler extension which you can choose what you're avoiding perhaps. halp.
 
You can block it from your Google feed or from Facebook but I don't think you can block all mention from all sites.
 
Code:
var elements = document.getElementsByTagName('*');

for (var i = 0; i < elements.length; i++) {
    var element = elements[i];

    for (var j = 0; j < element.childNodes.length; j++) {
        var node = element.childNodes[j];

        if (node.nodeType === 3) {
            var text = node.nodeValue;
            var replacedText = text.replace(/Corona/gi, 'a slight sniffle nothing to worry about');

            if (replacedText !== text) {
                element.replaceChild(document.createTextNode(replacedText), node);
            }
        }
    }
}
 
Aye it should have stayed elsewhere. I’m actually grateful we have a separate forum, thinking on it, cos then it can be ignored
 
Back
Top Bottom