Some "quasi features" for Mbin through Ublock Origin filters
from Auster@thebrainbin.org to fediverse@lemmy.world on 09 Feb 15:03
https://thebrainbin.org/m/fediverse@lemmy.world/t/563178

On another post, an user had asked for the filters I use, so pasting them below to make usability in Mbin better.

Some notes:

The filters:

Hiding specific posts

thebrainbin.org##a[href=“href_here”]:upward(article[id^=“entry-”]) Explanation:
href_here is what appears after the domain name, so for example:
https://thebrainbin.org/m/fediverse@lemmy.world/t/545669/This-is-not-a-complaints-forum
What you want is /m/fediverse@lemmy.world/t/545669/This-is-not-a-complaints-forum, which turns the filter into this:
thebrainbin.org##a[href=“/m/fediverse@lemmy.world/t/545669/This-is-not-a-complaints-forum”]:upward(article[id^=“entry-”]) This filter needs to be repeated for each post you want to hide. Probably could replace href= for href^= (matches anything that starts with what comes after it) or href*= (matches anything that includes what comes after it), if this is faster for anyone, so for example:
thebrainbin.org##a[href^=“/m/fediverse@lemmy.world/t/545669/”]:upward(article[id^=“entry-”])
thebrainbin.org##a[href=“/545669/”]:upward(article[id^=“entry-”])

Hiding communities already subscribed to or that you blocked on [the Magazines pages](https://thebrainbin.org/magazines)

thebrainbin.org##span:has-text(Unblock):upward(tr) thebrainbin.org##span:has-text(Unsubscribe):upward(tr)

Hiding posts upvoted and downvoted

thebrainbin.org##form[class=“vote__up active”]:upward(article[id^=“entry-”]) thebrainbin.org##form[class=“vote__up active”]:upward(blockquote[id^=“post-”]) thebrainbin.org##form[class=“vote__down active”]:upward(article[id^=“entry-”]) thebrainbin.org##form[class=“vote__down active”]:upward(blockquote[id^=“post-”])

Some filters for the defunct instances `kbin.social` & `kbin.cafe` I forgot to delete in case they're useful

! Kbin Cafe - hiding liked posts: kbin.cafe##form[class=“vote__up active”]:upward(article[id^=“entry-”]) kbin.cafe##form[class=“vote__up active”]:upward(blockquote[id^=“post-”]) ! Kbin Social - hiding specific posts: kbin.social##a[href=“/m/memes@lemmy.world/t/951126/Totaled-Eclipse”]:upward(article[id^=“entry-”]) kbin.social##a[href=“/m/kbinMeta/p/6372596/at-ernest-I-m-up-to-cut-down-the-spam-from-all”]:upward(blockquote[id^=“post-”]) ! Kbin Cafe - hiding specific posts: !kbin.cafe##a[href=“href_aqui”]:upward(article[id^=“entry-”]) kbin.cafe##a[href=“/m/linux@lemmy.ml/t/216192/What-is-wayland”]:upward(article[id^=“entry-”]) ! Kbin Social - hiding my own posts: kbin.social##a[href=“/u/Auster”]:upward(article[id^=“entry-”])

#fediverse #form #span

threaded - newest

Blaze@lemmy.dbzer0.com on 09 Feb 15:08 next collapse

Thank you very much, definitely helpful!

Obelix@feddit.org on 09 Feb 16:24 collapse

You can also do a simple content filter. Using feddit.org as instance:

feddit.org##.d-sm-block.d-none > .post-container.row:has(.post-title:has-text(/trump|musk|puppies/i))

This will hide every post which has the words “Trump” OR “Musk” OR “puppies” in the title. Or if you don’t use Apple devices and don’t want to read about their new devices in every tech community:

feddit.org##.d-sm-block.d-none > .post-container.row:has(.post-title:has-text(/apple|iphone|macos|icloud|iOS|ipad/i))