News for hackers. Stuff that matters.
Re:Google Search is only 18% Search by jlarocco on Tuesday September 04, 2012 @06:06PM (#4476795)
Actually, there's no way to really block ad-block.

It wouldn't be too hard to make an ad-blocker that used CSS and Javascript to do all of the blocking during page render. It'd be an inefficient use of bandwidth and rendering time, but it'd be able to block 100% of ads and undetectable from the web server.

In fact, before Opera had a built-in ad-blocker, I think there was an ad-block extension built on its "User Javascript" and custom CSS abilities.

Re:Google Search is only 18% Search by Myrth on Tuesday September 04, 2012 @06:17PM (#4476825)
Seriously?

  function verifyAds() {
    if (!adContentsVisible()) {
      loadAdContents();
    }
    setTimeout(verifyAds, 1000);    
  }
  verifyAds();
Re:Google Search is only 18% Search by codeka on Tuesday September 04, 2012 @06:26PM (#4476864)
Huh? Extension can override JavaScript on the page, too, you know:

window.adContentsVisible = function () { return true; }

Re:Google Search is only 18% Search by Myrth on Tuesday September 04, 2012 @07:37PM (#4477099)

  (function() {  
    // local scope, can't override
  })();
My point is that I agree with grandparent, that they just allow ads to be shown, and it's not technically impossible to reload ads, or prevent page contents view, if no ads visible.
Re:Google Search is only 18% Search by oinksoft on Tuesday September 04, 2012 @09:03PM (#4477359)
The plugin can absolutely mock the ad element(s) and make them seem to be visible.
Re:Google Search is only 18% Search by comex on Tuesday September 04, 2012 @09:07PM (#4477366)
only because sites generally don't do so; if necessary, extensions could get much more aggressive with website scripts, current user script limitations aside.
Re:Google Search is only 18% Search by SquareWheel on Tuesday September 04, 2012 @06:26PM (#4476866)
If it's client-side, it can be defeated. Let's not enter into an arms race of larger and more bandwidth-intensive checkers/blockers to try to get the upper hand. If someone ad blocks, they're not likely in your target demographic anyway.
Re:Google Search is only 18% Search by saalweachter on Wednesday September 05, 2012 @01:59AM (#4478191)
"During page render".

Render the page, identify the regions of the resulting bitmap which are ads, and blank them out. The browser can always just lie at the end, even after running all of the JavaScript and marking all of the DOM elements to visible.

Re:Google Search is only 18% Search by ufo on Tuesday September 04, 2012 @06:31PM (#4476880)
Also, it is possible to block 3rd party ads without touching the browser by going straight into the underlying IP routing tables.
Re:Google Search is only 18% Search by rabbidrabbit on Tuesday September 04, 2012 @06:36PM (#4476893)
I use http://someonewhocares.org/hosts/ as my hosts file, and it works great. It doesn't remove the placeholder for the ad, but it does stop it from downloading.
Re:Google Search is only 18% Search by kanzure on Tuesday September 04, 2012 @06:25PM (#4476861)
Yes, but it's easy for a browser to just override your verifyAds function.
Re:Google Search is only 18% Search by lignuist on Wednesday September 05, 2012 @07:23AM (#4478854)
If they find a way to force the visibility of ads, we still could move them to the bottom of the page.
Re:Google Search is only 18% Search by tedunangst on Tuesday September 04, 2012 @06:29PM (#4476871)
greasemonkey:

    function adContentsVisible() { return true }
Re:Google Search is only 18% Search by Myrth on Tuesday September 04, 2012 @07:41PM (#4477106)
not if it's defined in local context.
Re:Google Search is only 18% Search by lmm on Wednesday September 05, 2012 @09:09AM (#4479156)
I can modify my browser's javascript interpreter if I need to.
Re:Google Search is only 18% Search by lazugod on Wednesday September 05, 2012 @04:15PM (#4481240)
Mobile Safari successfully refrains from adblocking.