Detect AdBlock with JavaScript in my browser

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:

Check null values in JavaScript?

04-02-2019 JavaScript null check null value

Filter for change Date Time format (MM-dd-yyyy HH:mm) in Angular Js

05-03-2017 mm-dd-yyyy HH:MM date formats angular js

Filter for replace text in Angular Js

05-03-2017 filter replace angular js

Send Mail in Node Js

21-02-2017 node js mail npm module

Get Unique values from array/object in javascript

19-02-2017 javascript unique remove repeated values from array