Skip to content

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

License

Notifications You must be signed in to change notification settings

Maysora/u-ad.info-remover

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published