Javascript Detect Adblock

Last updated on
((( spellific )))
Practice spelling while playing a fun word game!
Click here to play
Speech Recognition Anywhere
  • Type emails with your voice
  • Write documents with your voice
  • Control the Internet with your voice
  • Chrome Extension
Reconocimiento de voz en cualquier lugar
  • Escribe correos electrónicos con tu voz
  • Escribe documentos con tu voz
  • Controla la Internet con tu voz
  • Extensión de Chrome
Spracherkennung Allerorts
  • Geben Sie E-Mails mit Ihrer Stimme ein
  • Schreiben Sie Dokumente mit Ihrer Stimme
  • Steuern Sie das Internet mit Ihrer Stimme
  • Chrome-Erweiterung
Reconnaissance de la parole
  • Tapez des e-mails avec votre voix
  • Écrivez des documents avec votre voix
  • Contrôlez l'Inernet avec votre voix
  • Extension Chrome
Riconoscimento vocale ovunque
  • Digita e-mail con la tua voce
  • Scrivi documenti con la tua voce
  • Controlla Internet con la tua voce
  • Estensione Chrome
どこでも
音声認識
  • あなたの声で文書を書く
  • あなたの声でメールを入力してください
  • 音声でインターネットをコントロール
  • Chrome拡張機能
语音识别
无处不在
  • 用你的声音写文件
  • 用您的声音输入电子邮件
  • 用你的声音控制互联网
  • Chrome 扩展程序
語音識別
無處不在
  • 用你的聲音寫文件
  • 用您的聲音輸入電子郵件
  • 用你的聲音控制互聯網
  • Chrome 擴展程序
Subscribe to Internet Tips and Tools Feed

Do you want to stop Adblock from blocking your Google Adsense Ads and hurting your revenue? Here is a simple javascript script that detects if Adblock or another Ad blocker is blocking your Google Adsense ads or ads from another ad network. It will then display your own local ads. You could put a local image with a link to an Amazon product or your could politely ask your users to turn off the adblocker or whatever you want to do.

Features

  • Detect Adblock or other ad blocker
  • Display your own local ad
  • Customize to work with other ad networks
dlc_b

Download

Downloaded 0 times.
Please make a donation to reveal the download link.

How To Use

After downloading edit the following variables in the javascript file:

	var your_class = "sra_div"; // Put the class name of the div elements that contain your local ads here
	var other_class = "adsbygoogle"; // Put the class name of the ad network elements here. Use "adsbygoogle" for Adsense

Add the following code to you html page:

<script type="text/javascript" src="block_detect.js">
</script>

History

8/9/2021 - Version 1.2c - Removed some code that was causing Google Adsense full screen vignette ads to display without being able to close them.

4/17/2018 - Version 1.2b - Removing adsbygoogle in version 1.2 caused the script to display your_ads even though google ads were loading. Fixed by putting || (typeof adsbygoogle != "undefined" && typeof adsbygoogle.loaded != "undefined")

4/16/2018 - Version 1.2 - Removed || (adsbygoogle && adsbygoogle.loaded) to prevent error: Uncaught ReferenceError: adsbygoogle is not defined on line 27.

2/21/2018 - Verison 1.1 - Previously the div element that contains the ad that was being blocked was not being set to display="none". In a few mobile browsers this caused a blank space to be visible. Fixed by using display="none".

2/19/2018 - Version 1.0 - Javascript Detect Adblock created

Last updated on August 10, 2021
Created on February 19, 2018

((( spellific )))
Practice spelling while playing a fun word game!
Click here to play
Speech Recognition Anywhere
  • Type emails with your voice
  • Write documents with your voice
  • Control the Internet with your voice
  • Chrome Extension
Reconocimiento de voz en cualquier lugar
  • Escribe correos electrónicos con tu voz
  • Escribe documentos con tu voz
  • Controla la Internet con tu voz
  • Extensión de Chrome
Spracherkennung Allerorts
  • Geben Sie E-Mails mit Ihrer Stimme ein
  • Schreiben Sie Dokumente mit Ihrer Stimme
  • Steuern Sie das Internet mit Ihrer Stimme
  • Chrome-Erweiterung
Reconnaissance de la parole
  • Tapez des e-mails avec votre voix
  • Écrivez des documents avec votre voix
  • Contrôlez l'Inernet avec votre voix
  • Extension Chrome
Riconoscimento vocale ovunque
  • Digita e-mail con la tua voce
  • Scrivi documenti con la tua voce
  • Controlla Internet con la tua voce
  • Estensione Chrome
どこでも
音声認識
  • あなたの声で文書を書く
  • あなたの声でメールを入力してください
  • 音声でインターネットをコントロール
  • Chrome拡張機能
语音识别
无处不在
  • 用你的声音写文件
  • 用您的声音输入电子邮件
  • 用你的声音控制互联网
  • Chrome 扩展程序
語音識別
無處不在
  • 用你的聲音寫文件
  • 用您的聲音輸入電子郵件
  • 用你的聲音控制互聯網
  • Chrome 擴展程序
Back to www.seabreezecomputers.com
Subscribe to Internet Tips and Tools Feed        

User Comments

There are 0 comments.

Displaying first 50 comments.