GithubHelp home page GithubHelp logo

galeksic / adsenseonthispage Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 140 KB

With "AdSense on this page" WordPress plugin you can disable AdSense ads on individual posts and pages. (If you can't, that means it doesn't work as expected...)

License: Apache License 2.0

JavaScript 0.04% PHP 99.96%

adsenseonthispage's Introduction

This is not stand-alone plugin, it can be used only in addition to your existing solution for showing AdSense ads. It should work with:

  • other plugins
  • and / or if ad code is pasted in template
  • and / or text widget
  • both synchronous and asynchronous AdSense code
  • both content and link units.

##How it works (when it works)

If you disable ads on page, this plugin will search page source and it will replace all occurances of adsbygoogle.js and show_ads.js with empty.js. For more info, please see plugin source.

##TERMS OF USE:

  1. YOU UNDERSTAND THERE ARE NO GUARANTEES THIS PLUGIN WILL WORK AS EXPECTED, AND YOU WILL USE IT ON YOUR OWN RISK. I (DEVELOPER) WILL NOT ACCEPT ANY RESPOSIBLITY FOR ANY KIND OF DAMAGE.
  2. YOU UNDERSTAND THAT IF YOU HAVE (FOR EXAMPLE) PROHIBITED CONTENT ON SITE (SITE-WIDE ISSUE), YOU MUST REMOVE THAT CONTENT, NOT ADS. AND YOU WILL USE THIS PLUGIN TO RESOLVE PAGE-SPECIFIC ISSUES WITH QUALITY (FOR EXAMPLE) CONTACT PAGE, ABOUT PAGE, ETC.
  3. YOU WILL NOT USE PLUGIN IF YOU DON'T UNDERSTAND OR DISAGREE WITH TERMS.

##Keep in mind

Don't disable ads if you don't have strong reason: no ads - no earnings.

###And...

This plugin is not really my "work", it is collection of snippets I found on various sites. And I obviously didn't bother to give it some super cool name, but I hope we can live with it.

##Screenshots

http://imgur.com/a/p5RPx

Front end for admin / editor

Page / post list

Edit page view

###URL

AdSense Help Forum: Is it possible to suppress ads one specific categories/pages? https://productforums.google.com/forum/#!topic/adsense/ysD9etg7P1A

adsenseonthispage's People

Contributors

galeksic avatar

Stargazers

René Hermenau avatar  avatar

Watchers

 avatar James Cloos avatar

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.