Some "quasi features" for Mbin through Ublock Origin filters
submitted
Auster
edited
On another post, an user had asked for the filters I use, so pasting them below to make usability in Mbin better.
Some notes:
- From what I checked from page sources of a few instances using Mbin, and considering a few of those filters were for kbin.social (RIP) and then repurposed without major adaptations, those filters shouldn't break on most Mbin instances, at least as the engine and its implementations are now.
- Using
thebrainbin.org
as the site for the filters to check, but that can be replaced with the site you may be using, likefedia.io
,kbin.earth
, etc. - For disabling a given filter, or to add comments on Ublock Origin's filters page, add a ! to the beginning of the line.
- Worth noting those filters also make the title and body of posts disappear in the posts' respective pages when active.
The filters:
thebrainbin.org##a[href="href_here"]:upward(article[id^="entry-"]) Explanation: This filter needs to be repeated for each post you want to hide. Probably could replace Hiding specific posts
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-"])
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-"])
thebrainbin.org##span:has-text(Unblock):upward(tr)
thebrainbin.org##span:has-text(Unsubscribe):upward(tr)Hiding communities already subscribed to or that you blocked on the Magazines pages
thebrainbin.org##form[class="voteup active"]:upward(article[id^="entry-"])
thebrainbin.org##form[class="voteup active"]:upward(blockquote[id^="post-"])
thebrainbin.org##form[class="votedown active"]:upward(article[id^="entry-"])
thebrainbin.org##form[class="votedown active"]:upward(blockquote[id^="post-"])Hiding posts upvoted and downvoted
! Kbin Cafe - hiding liked posts:
kbin.cafe##form[class="voteup active"]:upward(article[id^="entry-"])
kbin.cafe##form[class="voteup 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-"])Some filters for the defunct instances
kbin.social
& kbin.cafe
I forgot to delete in case they're useful
Thank you very much, definitely helpful!
You can also do a simple content filter. Using feddit.org as instance:
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: