this post was submitted on 11 Aug 2023
69 points (100.0% liked)

chapotraphouse

13519 readers
966 users here now

Banned? DM Wmill to appeal.

No anti-nautilism posts. See: Eco-fascism Primer

Gossip posts go in c/gossip. Don't post low-hanging fruit here after it gets removed from c/gossip

founded 3 years ago
MODERATORS
 

I WANT TO BE MORE ANGERY

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 6 points 1 year ago (1 children)

You probably also want to add a Lemmygrad exemption

[โ€“] [email protected] 5 points 1 year ago

Donezo - and now instead of collapsing comment trees it just removes the content.

// ==UserScript==
// @name         Hexbear Blocker
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Hide tankies on hexbear.net
// @author       YearOfTheCommieDesktop
// @match        https://hexbear.net/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @require      https://cdn.jsdelivr.net/gh/CoeJoder/[email protected]/waitForKeyElements.js
// @grant        none
// ==/UserScript==

function processComment(comment) {
    var link = comment.querySelectorAll('a[title="link"]');
    if (link.length >= 2 && ( link[1].href.includes("hexbear.net") || link[1].href.includes("lemmygrad.ml"))) {
//        comment.querySelector('button[aria-label="Collapse"]').click();
        var content = comment.querySelector('div[class="md-div"]');
        if (content !== null) {
            content.remove();
        }
        //console.log('hid hexer');
    }
    return true;
}

waitForKeyElements('.comment-node', processComment);