How to block hex div-id's

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
ottootts
Posts: 12
Joined: Wed Jul 13, 2016 10:59 am

How to block hex div-id's

Post by ottootts »

Can anyone give me a tip on how to generically block divs with hexadecimal ids?
Like this one...

<div id="7be6ed316e0c0b2285a4b752ce5e6d617b46a850"> </div>

The number of hex digits is fixed.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block hex div-id's

Post by mapx »

No chance to check for the number of digits.
Eventually use the new syntax:
development-builds/new-css-property-filter-syntax

and post here the real example describing what to you want to hide.
ottootts
Posts: 12
Joined: Wed Jul 13, 2016 10:59 am

Re: How to block hex div-id's

Post by ottootts »

Thanks for the help, I'll check that out.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block hex div-id's

Post by mapx »

When you ask for help, don't ignore my question:
and post here the real example describing what to you want to hide.
ottootts
Posts: 12
Joined: Wed Jul 13, 2016 10:59 am

Re: How to block hex div-id's

Post by ottootts »

Sorry I missed that.

Code: Select all

http://www.wetteronline.de
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block hex div-id's

Post by mapx »

and what (where on the page) do you want to hide ?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block hex div-id's

Post by mapx »

however, you should report your issues on german sites to the dedicated (german easylist) forum:
https://forums.lanik.us/viewtopic.php?f=90&t=30650
ottootts
Posts: 12
Joined: Wed Jul 13, 2016 10:59 am

Re: How to block hex div-id's

Post by ottootts »

I'll explain... I've been using the element hiding helper for months to hide the adverts, so I now have lots of custom filters with these hex ids. I can't give you a current example as I don't see any currently. I want to replace the many items with a generic filter.
Here are some of the current custom filters:

Code: Select all

wetteronline.de###ff48e8b07a9138aedd06c7342ea3ebbccb8aee8e
wetteronline.de###cf127c3ba3135b827fa4b3ce211c8eae67108822
wetteronline.de###d84f625e51d1c935c4de79f1eec26579ff5507c4
wetteronline.de###ec60dbd76894e98607e7d6de0a1832de0d05dd67
wetteronline.de###df45b5666b09c6f16618dc866b5ae8c9d26b59ba
wetteronline.de###a098d1a1b823d9ae6d783e5592ec71c6848cb735
wetteronline.de###ebf131c458824e6dd7cc3ef48689f1f62f00d9ce
wetteronline.de###db3f7788db83f3a26b3eb801b37fcf034c07fa6e
wetteronline.de###ec4aac6a7aa86a05077e6502ecaeb004fa0b5855
wetteronline.de###bb79d374dfe9baeed4bb3388f2ba1ca73e94d42c
wetteronline.de###df916b0f5444aeb1fc1683f30040c1f453aeac4d
wetteronline.de###b8fee6445d270bd3df23069114aa7accbc7ede9c
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block hex div-id's

Post by mapx »

as I said it needs to find another workaround and don't hide those random divs (read also the easylist german section)
Are you talking about those side annoying ads on wetteronline site ?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block hex div-id's

Post by mapx »

you mean these ads ?
Image
ottootts
Posts: 12
Joined: Wed Jul 13, 2016 10:59 am

Re: How to block hex div-id's

Post by ottootts »

Yes, those at the side and at the bottom.
They seem to use these hex ids only for full-width ads.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block hex div-id's

Post by mapx »

add these filters, tell me if it works for you

Code: Select all

@@||wetteronline.de^$generichide
@@||pagead2.googlesyndication.com$script,domain=wetteronline.de
@@||wetteronline.de$domain=www.wetteronline.de
@@||partner.googleadservices.com$domain=wetteronline.de
@@||doubleclick.net$script,domain=wetteronline.de
wetteronline.de###aswift_0
ottootts
Posts: 12
Joined: Wed Jul 13, 2016 10:59 am

Re: How to block hex div-id's

Post by ottootts »

Wow! That worked.

Is there any tutorial (or something similar) on how to create such complex filters. To me it looks like magic...
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block hex div-id's

Post by mapx »

No, there aren't ... it's only experience with the filters, pages, reading the page code.
However, those exception filters (@@ filters) are whitelisting some elements which are checked by the code of the page. "They" are thinking the adblock is not enabled so they wont push anymore those ugly side ads (thinking the other main ads are displaying). It's a cat & mouse game.
ottootts
Posts: 12
Joined: Wed Jul 13, 2016 10:59 am

Re: How to block hex div-id's

Post by ottootts »

Well I'll try to understand how that works. Many thanks for your help.
Post Reply