Advertisement
Guest User

AdBlock Code Detecter

a guest
Jan 23rd, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>Detect AdBlock</title>
  5. </head>
  6. <body>
  7. <div class="container" align="center">
  8. Here is going your website source code...
  9. </div>
  10. <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  11. <script src="http://sitexw.fr/fuckadblock/fuckadblock.js"></script>
  12. <script>
  13. function adBlockDetected() {
  14. alert("Please disable AdBlock in your WebBrowser if you want to access this page...");
  15. $(".container").fadeOut();
  16. }
  17.  
  18. function adBlockNotDetected() {
  19. //alert("not detected");
  20. }
  21.  
  22. $(document).ready(function() {
  23. if ( typeof fuckAdBlock === 'undefined') {
  24. adBlockDetected();
  25. } else {
  26. fuckAdBlock.onDetected(adBlockDetected).onNotDetected(adBlockNotDetected);
  27. }
  28. });
  29. </script>
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement