/u-ad.info-remover

A simple jQuery library to remove injected advertisement from u-ad.info

Primary LanguageJavaScriptMIT LicenseMIT

u-ad.info-remover

A simple jQuery library to remove injected advertisement from u-ad.info

Requirement

  • jQuery (use noConflict when necessary)

Usage

Add both u-ad.info-remover.js and u-ad.info-remover.css to your site after jquery.

Then add the following code into your site main javascript file, modify as needed.

jQuery(function(){
  jQuery.slowdyAdsRemover.init({
    existedFunc: function(){
      // advertisement detected, do something here if necessary,
      // for example disabling turbolinks for rails app :
      // jQuery('body').attr('data-no-turbolink', '1')
    },
    cleanFunc: function(){
      // advertisement not detected, do something here if necessary,
      // for example congratulate visitor for not using scumbag ISP
    },
    popup: true, // default: true, set false to disable warning popup
    popupText: 'You\'re using scumbag ISP please change it immediately.' // optional, change popupText
  });
});

Screenshots

Default Popup Default popup

License

See LICENSE