Filter with generic top-level domain

Various discussions related to filter list maintenance

Moderator: njones

Filter with generic top-level domain

Postby Wood » Fri Feb 02, 2018 12:03 pm

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.
Wood
 
Posts: 1
Joined: Fri Feb 02, 2018 11:46 am

Re: Filter with generic top-level domain

Postby mapx » Fri Feb 02, 2018 12:06 pm

You cannot use wildcard, so use the generic filter:
Code: Select all
##.fbar._Ubu
User avatar
mapx
 
Posts: 21357
Joined: Thu Jan 06, 2011 3:01 pm

Re: Filter with generic top-level domain

Postby mapx » Fri Feb 02, 2018 12:09 pm

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.*)
User avatar
mapx
 
Posts: 21357
Joined: Thu Jan 06, 2011 3:01 pm


Return to Filter List Authors' Corner

Who is online

Users browsing this forum: No registered users and 1 guest