Detect AdBlock with JavaScript in my browser

30-07-2017 AdBlock javascript detect

Basically Adblocker is used to hide the ads in the website. We can find adblocker existed / installed or not by using javascript. 

Below is the code for detect adblocker in browser by using javascript.

<html>
    <head>
        <title>Check Adblocker existed Using Javascript</title>
        <script>
            window.onload = function() {
                setTimeout(function() {
                    if (typeof(window.google_jobrunner) === "undefined") {
                        alert("adblocker is existed");
                    }else{
                        alert("no adblocker found.");
                    }
                }, 3000);  
            };
        </script>
    </head>
</html>

 

 

You might also like:

Detect AdBlock with JavaScript in my browser
30-07-2017 AdBlock javascript detect
How to upload file by using request module
18-03-2017 request module node js
How to use http-post request in node js
14-03-2017 http-post module node js
Navigate to another page using java script
06-03-2017 javascript redirection navigation
How to get drop down value when drop down change using javascript
27-02-2017 onchange events dropdown javascript functions