Jump to content

Recommended Posts

We all know that ads can be quite annoying. But when the site offers you free content that interests you, it's more than fair to let some

advertising be displayed to generate revenue. When you're on the other side of the screen and with bills to pay things change a little. In

most cases the user installs AdBlock  (and other blockers) and forgets about it. It is worth remembering!

Going through this problem, I made a simple program using JQuery on uniGUI to show if the user is using AdBlock when entering a page (in this

case, my uniGUI app).

This program has an "alert ()" in the JS code. Comment this part if you don't want to show it. The JS code also generates an ajaxRequest that

triggers an event where it can best handle how it notifies the user that he has AdBLock active on his browser

Works with all ad blockers. Note that it does not test whether your advertisement is being displayed but whether advertising screens can be displayed on the screen or not and whether they are being blocked.

PS: Not tested in mobile, before you ask me. Later , I will test it.

adblock.gif

Project available at https://unigui.express

  • Like 1
  • Upvote 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...