Doubleclick fix
This commit is contained in:
parent
1dabe29077
commit
1479041e92
|
@ -77,7 +77,7 @@ fetchFromURL();
|
||||||
* @param {String} _name Provider name
|
* @param {String} _name Provider name
|
||||||
* @param {boolean} completeProvider Set URL Pattern as rule
|
* @param {boolean} completeProvider Set URL Pattern as rule
|
||||||
*/
|
*/
|
||||||
function Provider(_name,_completeProvider=false){
|
function Provider(_name,_completeProvider){
|
||||||
var name = name;
|
var name = name;
|
||||||
var urlPattern;
|
var urlPattern;
|
||||||
var rules = new Array();
|
var rules = new Array();
|
||||||
|
@ -90,7 +90,7 @@ function Provider(_name,_completeProvider=false){
|
||||||
*/
|
*/
|
||||||
this.setURLPattern = function(urlPatterns) {
|
this.setURLPattern = function(urlPatterns) {
|
||||||
if(_completeProvider){
|
if(_completeProvider){
|
||||||
rules.push(urlPattern);
|
rules.push(urlPatterns);
|
||||||
}
|
}
|
||||||
|
|
||||||
urlPattern = new RegExp(urlPatterns, "mgi");
|
urlPattern = new RegExp(urlPatterns, "mgi");
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
"exceptions": []
|
"exceptions": []
|
||||||
},
|
},
|
||||||
"doubleclick": {
|
"doubleclick": {
|
||||||
"urlPattern": ".*(doubleclick\\.net)\\/.*",
|
"urlPattern": ".*(doubleclick).*",
|
||||||
"completeProvider": true,
|
"completeProvider": true,
|
||||||
"rules": [],
|
"rules": [],
|
||||||
"exceptions": []
|
"exceptions": []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user