SHARE
TWEET

Show Adblock users a message to (please) disable Adblock

a guest Nov 13th, 2018 439 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.  
  3. function adBlockDetected() {
  4.     $( ".fuckAdblock-message" ).show();
  5. }
  6.  
  7. if(typeof fuckAdBlock !== 'undefined' || typeof FuckAdBlock !== 'undefined') {
  8.     adBlockDetected();
  9. } else {
  10.     var importFAB = document.createElement('script');
  11.     importFAB.onload = function() {
  12.         fuckAdBlock.onDetected(adBlockDetected)
  13.         fuckAdBlock.onNotDetected(adBlockNotDetected);
  14.     };
  15.     importFAB.onerror = function() {
  16.         adBlockDetected();
  17.     };
  18.     importFAB.integrity = 'sha256-xjwKUY/NgkPjZZBOtOxRYtK20GaqTwUCf7WYCJ1z69w=';
  19.     importFAB.crossOrigin = 'anonymous';
  20.     importFAB.src = 'https://cdnjs.cloudflare.com/ajax/libs/fuckadblock/3.2.1/fuckadblock.min.js';
  21.     document.head.appendChild(importFAB);
  22. }
  23. </script>
  24. <div class="blockMessage fuckAdblock-message" style="display: none;">
  25.  
  26.  
  27.  
  28. Please disable Adblocker ❤️
  29.  
  30.  
  31.  
  32. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top