Coder Social home page Coder Social logo

amine-h / adblock-detector Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 860 KB

a jQuery plugin to detect adblocker and act somehow by showing a message in the screen or defining your own function

License: GNU General Public License v2.0

CSS 84.14% JavaScript 15.86%

adblock-detector's Introduction

AdblockDetector -- a jQuery plugin to detect adblocker and act somehow by showing a message in the screen or defining your own function

Author: Amine Hakkou
github: https://github.com/Amine-H

Usage -- add this piece of code in the header part of your website <script src="adblockdetector.js"></script> <script type="text/javascript"> $(document).ready(function() { $.AdblockDetector ({ modal:false, message:$('', src:'adblockdetected.jpg' ) }); }); </script>

Params 'whenDetected':function to execute when adblock is detected ==>By default it will print in the screen the 'message' 'message':the message that will be printed out ==>By default it's 'you are using an adblocker,thanks for not helping us' 'modal':this can take true or false, if true the message can be dissmissed when clicked on if false the message cannot be dissmissed untill adblocker is disabled ==>By default it is false

Message from Amine i am not taking any credit for the Sample it's made by html5up i made the adblockerdetected image, you may use it if you want

adblock-detector's People

Contributors

amine-h avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

rachitman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.