Skip to main content

Search

Items tagged with: UserScript


I made a #userscript to completely remove filtered elements on #friendica like you can on Mastodon. Adjust the include pattern to match your server of choice.
// ==UserScript==
// @name        Libranet remove filtered elements
// @namespace   
// @description 
// @include     *libranet.de/*
// @version     1
// @author      lrustand
// ==/UserScript==

function deleteFiltered()
{

    let elements = document.querySelectorAll(".content-filter-content");
    for(let e of elements)
    {
        let post = e.closest(".wall-item-container");
        post.parentElement.removeChild(post);
    }
}

setInterval(deleteFiltered, 100);