4 ms·
Seriously? function verifyAds() { if (!adContentsVisible()) { loadAdContents(); } setTimeout(verifyAds, 1000); } verifyAds();
by Myrth 14y ago
Seriously?
function verifyAds() {
if (!adContentsVisible()) {
loadAdContents();
}
setTimeout(verifyAds, 1000);
}
verifyAds();
- kanzure 14y agoYes, but it's easy for a browser to just override your verifyAds function.
- codeka 14y agoHuh? Extension can override JavaScript on the page, too, you know: window.adContentsVisible = function () { return true; }
- Myrth 14y ago(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.
- SquareWheel 14y agoIf 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.
- deleted 14y ago[deleted]
- tedunangst 14y agogreasemonkey: function adContentsVisible() { return true }
- ufo 14y agoAlso, it is possible to block 3rd party ads without touching the browser by going straight into the underlying IP routing tables.
- rabbidrabbit 14y agoI use http://someonewhocares.org/hosts/ 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.
- saalweachter 14y ago"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.
- lignuist 14y agoIf they find a way to force the visibility of ads, we still could move them to the bottom of the page.