Page 1 of 1

Filter with generic top-level domain

Posted: Fri Feb 02, 2018 11:03 am
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.

Re: Filter with generic top-level domain

Posted: Fri Feb 02, 2018 11:06 am
by mapx
You cannot use wildcard, so use the generic filter:

Code: Select all

##.fbar._Ubu

Re: Filter with generic top-level domain

Posted: Fri Feb 02, 2018 11:09 am
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.*)