temptest [any]@hexbear.net to chapotraphouse@hexbear.netEnglish · 1 year agoHexbear Devs: Add filter to only show replies from other instances, to help increase my dunking frequency coefficienthexbear.netimagemessage-square14fedilinkarrow-up169arrow-down10file-text
arrow-up169arrow-down1imageHexbear Devs: Add filter to only show replies from other instances, to help increase my dunking frequency coefficienthexbear.nettemptest [any]@hexbear.net to chapotraphouse@hexbear.netEnglish · 1 year agomessage-square14fedilinkfile-text
minus-squareYearOfTheCommieDesktop [they/them]@hexbear.netlinkfedilinkEnglisharrow-up15·edit-21 year agoLook 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/waitForKeyElements.js@v1.2/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
minus-squareYearOfTheCommieDesktop [they/them]@hexbear.netlinkfedilinkEnglisharrow-up10·edit-21 year agoBEHOLD
minus-squareParsani [love/loves, comrade/them]@hexbear.netlinkfedilinkEnglisharrow-up12·1 year agoLibVision™
minus-squareromaselli@lemmygrad.mllinkfedilinkEnglisharrow-up6·1 year agoYou probably also want to add a Lemmygrad exemption
minus-squareYearOfTheCommieDesktop [they/them]@hexbear.netlinkfedilinkEnglisharrow-up5·1 year agoDonezo - 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/waitForKeyElements.js@v1.2/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);
minus-squarespectre [he/him]@hexbear.netlinkfedilinkEnglisharrow-up2·1 year agoI think you need to close out the code block
minus-squareYearOfTheCommieDesktop [they/them]@hexbear.netlinkfedilinkEnglisharrow-up2·edit-21 year agoNope. it’s working as written. I close the function on line 20, the bottom call is not encased in a function,
minus-squarespectre [he/him]@hexbear.netlinkfedilinkEnglisharrow-up3·1 year agoI just meant the triple backtick for formatting purposes
minus-squareYearOfTheCommieDesktop [they/them]@hexbear.netlinkfedilinkEnglisharrow-up2·1 year agosome code here
minus-squareYearOfTheCommieDesktop [they/them]@hexbear.netlinkfedilinkEnglisharrow-up2·1 year agoseems fine without
minus-squarespectre [he/him]@hexbear.netlinkfedilinkEnglisharrow-up3·1 year agoWhatever you ended up doing (or not), the formatting looks good now
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/waitForKeyElements.js@v1.2/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
BEHOLD
LibVision™
You probably also want to add a Lemmygrad exemption
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/waitForKeyElements.js@v1.2/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);
I think you need to close out the code block
Nope. it’s working as written. I close the function on line 20, the bottom call is not encased in a function,
I just meant the triple backtick for formatting purposes
some code here
seems fine without
Whatever you ended up doing (or not), the formatting looks good now