1

Adblocker installed in chrome is blocking all the javascript files which has 'Ads' word in its name.Is there a ways to check if the user is using an adblocker for his browser and alert him to disable adblocker inorder to view the page

Shishir Kumar
  • 7,981
  • 3
  • 29
  • 45
neel shah
  • 2,231
  • 15
  • 19
  • possible duplicate of [How to detect Adblock on my website?](http://stackoverflow.com/questions/4869154/how-to-detect-adblock-on-my-website) – reto Mar 18 '14 at 08:06
  • 1
    no i checked that question before posting this – neel shah Mar 18 '14 at 08:07

1 Answers1

0

This is not bullet proof - but upon document ready, you could check for a variable that is defined in the *ads*.js file. If it is not defined, the file was not loaded, thus potentially blocked by an ad blocker.

UweB
  • 4,080
  • 2
  • 16
  • 28
  • 1
    is there any method to do it with using a global variables because many javascript files contains the word ads – neel shah Mar 18 '14 at 08:10