Detecting Adblock

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey

Detecting Adblock

Postby mrbene » Tue Jul 05, 2005 10:12 pm

Looking through some old forum topics over at [url][/url], I came across the Javascript element window._AdblockFiltered. It's supposed to be an array that has a list of blocked elements in it, but I haven't been able to get anything other than "0" using window._AdblockFiltered.length.

As proof of concept for detecting Adblock, I used:
Code: Select all
if (window._AdblockFiltered)
    alert("You are using Adblock to block ads")

This only works after page element has been blocked - if no element gets blocked, this array doesn't exist.

Anyone done anything with this, seen anything done with it? [/code]

Return to Adblock Plus for Firefox support

Who is online

Users browsing this forum: Maximusbog and 24 guests