Neowin ad placeholders not removed

Discussion in 'Missed Ads' started by Boo Berry, Jun 28, 2012.

  1. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    2,513
    Quick report. This is an issue I saw plaguing some adblockers for Chrome, Safari and Opera that when adding the following rules for Neowin.net the ad placeholders aren't removed due to some anti-adblocker CSS overriding code. However, the placeholders are removed in Firefox when using Adblock Plus;

    www.neowin.net##.banner-leaderboard
    www.neowin.net##.banner-square

    Here's a bug report about the issue here effecting Adblock (Chrome extension): http://code.google.com/p/adblockforchrome/issues/detail?id=5943

    I can confirm it happens in Adguard when adding the rules above. Going by the bug report my guess is it'll probably have to be "fixed" (workedaround) in Adguard itself.

    This is how it looks in IE with Adguard (I highlighted the placeholder in red): http://img846.imageshack.us/img846/5070/internetexplorer.jpg

    This is how it's supposed to look like in Firefox with Adblock Plus: http://img534.imageshack.us/img534/6484/firefoxq.jpg

    So, can this 'issue' be workaround?
     
    Last edited by a moderator: Jun 28, 2012
  2. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,081
    You cannot block it with CSS rules because these blocks style has been set explicitly (http://i.imgur.com/j9UeE.png look at "style" attribute).

    However you can remove this element from the page with Adguard content blocking rules:
    Code:
    neowin.net$$div[class="banner-leaderboard"]
    neowin.net$$div[class="banner-square"]
    
    Adblock can hide them because it use special Firefox content blocking feature instead of CSS (only firefox plugins can use it).
    Chrome extension cannot do this (it is firefox-only feature).
     
  3. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    2,513
    Those rules work perfectly! And believe it or not, I was able to re-create rules like above for other sites to fix other sizes which had element hiding issues I noticed when using Internet Explorer (but the old rules worked in Opera/Maxthon)! :D
     
    Last edited by a moderator: Jun 29, 2012
  4. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,081
    Internet Explorer has some issues with CSS-rules, but content rules != CSS rules (some elements are added to the web page dynamically with javascript, content filter does not see them).
     
  5. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    2,513
    Thanks for the info! I wonder if Internet Explorer 10 will address the CSS-rules issues.