Partial in-code blocking?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
dangdongho1
Posts: 1
Joined: Mon Jan 22, 2018 10:07 pm

Partial in-code blocking?

Post by dangdongho1 »

Greetings.

So, I have a small question, and not quite sure if answer to it already exists. On Bulbapedia, there's several block made specifically for for ads. Adblock Plus blocks those ads just fine, upper emptied element(where advertisement should be) can be easily hidden with element hiding. Yet there is that space on right side, which is part of <div id="contentbox">, made with style="margin-right:312px;padding-right: 1.0em; border-right: 1px solid #aaa;". This specific "style" line is what creates empty space, so I'm wondering - is it possible with AdBlock to block that specific part of the code, rather than blocking out the whole div element which contains it? Since that probably would not be a solution, as all the contents of the page stays inside that div-element.

Thanks for your respond.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Partial in-code blocking?

Post by mapx »

ABP cannot do such thing.

Ways: use some other extension for the styles or use another adblocker (ublock origin) equipped with such advanced options, read:
https://github.com/gorhill/uBlock/wiki/ ... ntax#style
Post Reply