Latest "uBlock Origin" Articles
Workshop » Reference Section » Grimoires » IT » Applications » Web Browsers » Websites » Facebook

uBlock Origin rule to hide posts of images that are mostly text (like tweets) from your Facebook feed

! works as of Oct 26, 2026 https://www.facebook.com
www.facebook.com##.html-div:has(img[alt="May be an image of text"])

This was designed as a solution for my Maxim Of Tweet Screenshots. Set up as a custom rule in uBlock Origin, this will hide posts containing images that are mostly text, such as tweet screenshots, from your facebook feed. It does get a lot of false positive, like blocking images of text-heavy book covers, concert announcement images, printed pages from inside books or magazines, but it's a small price to pay. I find blocking all tweet screenshots from my Facebook feed contributes materially to my peace of mind.

If you wish, to test it, you can add style so it hilights instead of hides: ! works as of Oct 26, 2026 https://www.facebook.com
www.facebook.com##.html-div:has(img[alt="May be an image of text"]):style(outline: 3px solid red !important; background-color: rgba(255, 0, 0, 0.2) !important;)

Then run it that…

Workshop » Reference Section » Grimoires » IT » Applications » Web Browsers » Plugins » uBlock Origin

A uBlock Origin custom rule to hide “Related Videos” (and more) on YouTube

If you're like me, you loathe and despise the toxic mental ordure that YouTube often plasters up and down the right side of each video page, such as POLITICAL DEMAGOGUERY in MIXED CAPS to PIQUE your OUTRAGE enough to KEEP YOU WATCHING YOUTUBE instead of doing something PRODUCTIVE! [insert thumbnail of someone looking amazed here.]

At a certain point, I started to notice that there was more likely to be things I didn't even want to know existed in that section than anything I actually wanted to see. So, I added a simple rule to the uBlock Origin browser plugin that hides that section of the page:

[code]!https://www.youtube.com www.youtube.com###related[/code]

And that's it. That's all you need to add. No more "related videos" section.

While I was at it, I added a rule to block the "suggested videos" thumbnails that appear at the end of videos, by…

Workshop » Reference Section » Grimoires » IT » Applications » Web Browsers » Plugins » uBlock Origin

Hide comments from blocked users on Reddit with uBlock Origin

Reddit collapses comments from blocked users so you have to click to read them, but does not hide them.

Add this custom rule to uBlock origin to completely hide comments from blocked users.

! https://www.reddit.com - hide blocked user
www.reddit.com##shreddit-comment.relative:has(.text-neutral-content-weak:has-text(Blocked User))