googlesyndication provider pattern change

This commit is contained in:
Kevin Röbert 2017-08-04 05:01:57 +02:00
parent 1479041e92
commit 035d224ad8
2 changed files with 6 additions and 7 deletions

View File

@ -83,16 +83,16 @@ function Provider(_name,_completeProvider){
var rules = new Array(); var rules = new Array();
var exceptions = new Array(); var exceptions = new Array();
if(_completeProvider){
rules.push(".*");
}
/** /**
* Add URL pattern. * Add URL pattern.
* *
* @require urlPatterns as RegExp * @require urlPatterns as RegExp
*/ */
this.setURLPattern = function(urlPatterns) { this.setURLPattern = function(urlPatterns) {
if(_completeProvider){
rules.push(urlPatterns);
}
urlPattern = new RegExp(urlPatterns, "mgi"); urlPattern = new RegExp(urlPatterns, "mgi");
}; };
@ -204,7 +204,6 @@ function clearUrl(request)
"changes": false, "changes": false,
"url": "" "url": ""
}; };
// var providers = [amazon, google, googlesyndication, doubleclick, utm];
/* /*
* Call for every provider the removeFieldsFormURL method. * Call for every provider the removeFieldsFormURL method.

View File

@ -49,7 +49,7 @@
] ]
}, },
"googlesyndication": { "googlesyndication": {
"urlPattern": ".*(\\.googlesyndication\\.)\\w{2,}\\/.*", "urlPattern": ".*(googlesyndication).*",
"completeProvider": true, "completeProvider": true,
"rules": [], "rules": [],
"exceptions": [] "exceptions": []