Filter with generic top-level domain

Various discussions related to filter list maintenance

Moderator: njones

Post Reply
Wood
Posts: 1
Joined: Fri Feb 02, 2018 10:46 am

Filter with generic top-level domain

Post by Wood »

How to filter an element without having to specify every possible top-level domain (like .com, .com.uk, etc.)?
Example: I want the filter ##.fbar._Ubu to work on all Google domains, like google.com, google.com.uk, etc.
If I type:
google.com##.fbar._Ubu
google.com.uk##.fbar._Ubu
then it works for ".com" and ".com.uk", but NOT for google.com.au.

I tried several things, like ||google.com##.fbar._Ubu, google.com*##.fbar._Ubu, google##.fbar._Ubu. Nothing worked. :cry:

Edit: I forgot to mention that ##.fbar._Ubu works across all TLDs, but I want it to work only for Google pages.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Filter with generic top-level domain

Post by mapx »

You cannot use wildcard, so use the generic filter:

Code: Select all

##.fbar._Ubu
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Filter with generic top-level domain

Post by mapx »

or use

Code: Select all

google.com.au,google.com.uk,google.com##.fbar._Ubu
other adblocker (uBo = ublock origin) permits such syntax (with wildcard)

see here:
https://github.com/uBlockOrigin/uAssets ... ilters.txt

(search for google.*)
Post Reply