googlesyndication provider pattern change
This commit is contained in:
parent
1479041e92
commit
035d224ad8
|
@ -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.
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"googlesyndication": {
|
"googlesyndication": {
|
||||||
"urlPattern": ".*(\\.googlesyndication\\.)\\w{2,}\\/.*",
|
"urlPattern": ".*(googlesyndication).*",
|
||||||
"completeProvider": true,
|
"completeProvider": true,
|
||||||
"rules": [],
|
"rules": [],
|
||||||
"exceptions": []
|
"exceptions": []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user