Browse Source

Ads to promote this script are disabled by default

Amauri CHAMPEAUX 10 years ago
parent
commit
7bae915fd2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tarteaucitron.js

+ 3 - 0
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,