excluding a section of a domain

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
delicacy
Posts: 329
Joined: Sun Dec 21, 2014 1:56 am

excluding a section of a domain

Post by delicacy »

google.com###gb *

i'd like this filter to avoid this domain part:
mail.google.com
User avatar
smed79
Posts: 1224
Joined: Thu Jan 14, 2010 11:51 pm
Location: EasyList Forum
Contact:

Re: excluding a section of a domain

Post by smed79 »

Hi,
i don't understand what do you mean? an exception for mail.google.com ?

Code: Select all

mail.google.com#@##gb *
delicacy
Posts: 329
Joined: Sun Dec 21, 2014 1:56 am

Re: excluding a section of a domain

Post by delicacy »

I did a mistake..

this is one of the filters i need for google searches
google.com##.gb_b

i also added an exception to not affect the mail page, but it doesn't work & icons on top still disappear with:
mail.google.com#@##.gb_b
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: excluding a section of a domain

Post by mapx »

all the hiding filters are working on domain level, so you cannot disable / enable them only for a subdomain
delicacy
Posts: 329
Joined: Sun Dec 21, 2014 1:56 am

Re: excluding a section of a domain

Post by delicacy »

I can use those 2 inclusive parts using a userscript:
// @include *www.google.*
// @include *encrypted.google.*

can i achieve this with adblock ?
delicacy
Posts: 329
Joined: Sun Dec 21, 2014 1:56 am

Re: excluding a section of a domain

Post by delicacy »

This could allow me to not touch mail.google.com :

encrypted.google.com,www.google.com##.gb_b

but for www.google.com
isn't there a way to avoid typing: www.google.
all the time & add a complete group of domain extensions ?

This doesn't work:
encrypted.google.com,www.google.[com|pl|ru|etc]##.gb_b
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: excluding a section of a domain

Post by lewisje »

There is no TLD-wildcard in hiding rules (nor is there a public-suffix-wildcard); also, if you want to exclude a particular subdomain from a hiding rule that you control, just put a ~ before it in the domain list, like this:

Code: Select all

google.com,~mail.google.com##.gb_b
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Post Reply