From 7bae915fd27ffb9ca326b537325ded77b4fc909a Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Mon, 22 Sep 2014 16:59:15 +0200 Subject: [PATCH] Ads to promote this script are disabled by default --- tarteaucitron.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tarteaucitron.js b/tarteaucitron.js index de012b0..b715aef 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -7,6 +7,7 @@ var scripts = document.getElementsByTagName('script'), var tarteaucitron = { "autoOpen": false, // auto open the panel with #tarteaucitron hash ? + "promoteThisScript": false, // promote this script if ads are denied ? "cdn": cdn, "user": {}, "lang": {}, @@ -401,6 +402,8 @@ var tarteaucitron = { */ "promoteMe": function (el) { "use strict"; + if (tarteaucitron.promoteThisScript === false) { return; } + var l = tarteaucitron.getLanguage(), w = el.offsetWidth, h = el.offsetHeight,