uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

uBlock shows empty ad space before hiding it

Open ghost opened this issue 11 years ago • 5 comments

Apologies if this has been mentioned before, I wasn't really sure what search criteria to use.

For example, in Chrome, if you browse http://www.gpforums.co.nz/ you can see the empty space up the top where the ad was before it's hidden and the main forum contents shifts up to where that empty space was. This only happens once per visit, however if you close the browser and open it again the empty space is shown then hidden.

Note, the ad isn't displaying just the empty space where it was, with Adblock this empty space isn't displayed.

Is it possible for the empty space to already be hidden instead of displaying it before shifting all the elements?

Below is a screenshot of what I'm talking about. initial load

empty space hidden

ghost avatar Oct 03 '15 01:10 ghost

See if adding the following site specific filter to My filters makes a difference: www.gpforums.co.nz###layoutTopBanner

AlexW-13 avatar Oct 03 '15 02:10 AlexW-13

Thanks, that does stop the empty space showing.

I should have added this happens on any site with ads, gpforums was easiest to display the behaviour

ghost avatar Oct 03 '15 02:10 ghost

https://github.com/gorhill/uBlock/wiki/Does-uBlock-block-ads-or-just-hide-them%3F#cosmetic-filters

gorhill avatar Oct 03 '15 04:10 gorhill

@gorhill, for how long these filters are cached?

ghost avatar Oct 03 '15 18:10 ghost

how long these filters are cached?

  • cache units are per-hostname.
  • cache units are flushed after 20 min of being unused.
    • except: the 10 most recently used cache are always exempted from being flushed.
  • the cache janitor kicks-in every 5 min. (code is trivial, so it's fast)

gorhill avatar Oct 03 '15 18:10 gorhill