Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <title>Detect AdBlock</title>
- </head>
- <body>
- <div class="container" align="center">
- Here is going your website source code...
- </div>
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
- <script src="http://sitexw.fr/fuckadblock/fuckadblock.js"></script>
- <script>
- function adBlockDetected() {
- alert("Please disable AdBlock in your WebBrowser if you want to access this page...");
- $(".container").fadeOut();
- }
- function adBlockNotDetected() {
- //alert("not detected");
- }
- $(document).ready(function() {
- if ( typeof fuckAdBlock === 'undefined') {
- adBlockDetected();
- } else {
- fuckAdBlock.onDetected(adBlockDetected).onNotDetected(adBlockNotDetected);
- }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement