"We have uBlock Filters at home"

Started by snow, Apr 09, 2025, 09:26 PM

Previous topic - Next topic

snow

My favorite part of ad blockers is how they're not just for ads, even if that's their primary purpose. It's most obvious from lists like the Annoyances and Cookie Blocker lists, which seek to hide annoying elements that aren't really ads, but make the whole web browsing experience that much worse.

But those lists don't cover everything. So, since I know I and a few others have personal sets of lists, I wanted to make a thread for us to share them. So regardless of purpose, feel free to share them here! They don't have to be fully-formed lists with all the fancy metadata comments (although of course that's welcome). Even a snippet of filters made using the element picker can be useful for others, if it's useful for you. :mrgreen:



Starting off: those SEO-heavy recipe sites. You know the sort: you go to search for "molasses cookie recipe" and get back ten listings that are actually twenty-paragraph blog posts about how their grandmother hand-picked molasses from the tree to make the finest baked confectionaties, followed by a bunch of Amazon affiliate links, and then, finally, the recipe. Now sites often have a "Jump to Recipe" button, but why must we have this concession?

Behold, my pettiest adblock filter list yet: Remove Recipe SEO Text

In my testing, this works across a wide range of recipe sites due to the plugins they use. Primarily, the following WordPress plugins:

  • WP Recipe Maker
  • WP Tasty Recipes
  • Create
  • Recipe Card Blocks

While there's a decent amount of customization on the theme, I've found the structure of the "recipe cards" to be consistent. The toughest part has been removing the text of sibling elements, which I'm not aware of a good CSS query selector for. (If you know, please share!)

To work around this, I just use something like so:

:has(> .block-i-want) > :not(.block-i-want)

As with most filters, it'll never apply to 100% of sites. But so far, I've had good luck with recipe sites I've visited.

lifning

iliana had one in a git repo called "ublock-rules", which i forked into a "cybercrud-drools" for my own usage and have been adding various upsells and distractions to it as i find them. these sorts of filters are really a godsend for accessibility - large swaths of the modern web and its various applications are legitimately unusable without them.
You cannot view this attachment.
Please consider the environment before printing this post.

viviridian

tbh I've just been tanking anything that isn't blocked by default rules so, tyvm for sharing

iliana

My current list lives at https://buttslol.net/ublock-filters.txt but I've started compiling them using templating and it's lost the comments context. Maybe I will fix this to not use Nix someday.

viviridian

Quote from: iliana on Apr 10, 2025, 07:40 PMMaybe I will fix this to not use Nix someday.
this is such a mood