Blocking elements mechanism enhancement

Various discussions related to Adblock Plus development
Post Reply
netgoblin
Posts: 1
Joined: Fri Jun 24, 2016 9:19 pm

Blocking elements mechanism enhancement

Post by netgoblin »

Hi. Recently, in an attempt to block ads on several sites I encounter the problem of ads reappear. Digging into the code, one can see that adv-elements get forced several CSS styles like:

Code: Select all

display: block !important;
visibility: visible !important;
To overcome this inventive method of struggle with blocking, one can add these lines:

Code: Select all

display: none !important;
visibility: hidden !important;
overflow: hidden !important;
opacity: 0 !important;
max-height: 0px !important;
max-width: 0px !important;
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: Blocking elements mechanism enhancement

Post by lewisje »

I brought up a similar idea just over a year ago, and it seems like the main potential downside is increasing memory usage: forum/viewtopic.php?t=35024
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