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

chapotraphouse

13 readers
1 users here now

Banned? DM Wmill to appeal.

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

Vaush posts go in the_dunk_tank

founded 4 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] 14 points 2 years ago* (last edited 2 years ago) (9 children)

Look no further, I have written a TamperMonkey script for exactly this purpose:

// ==UserScript==
// @name         Hexbear Blocker
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Hide comments from 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 !== 0 && link[1].href.includes("hexbear.net")) {
        comment.querySelector('button[aria-label="Collapse"]').click();
        console.log('hid hexer');
    }
    return true;
}



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

I didn't add any exemption for your own comments (yet) though so your own replies will be auto-collapsed too

And with tampermonkey it's easy to toggle on and off, just toggle the script and refresh

[–] [email protected] 9 points 2 years ago* (last edited 2 years ago) (1 children)
[–] [email protected] 12 points 2 years ago
load more comments (7 replies)