From 1479041e92571bb9909c0b6c128b74dd7f2696ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Fri, 4 Aug 2017 04:37:19 +0200 Subject: [PATCH] Doubleclick fix --- clearurls.js | 4 ++-- data/data.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clearurls.js b/clearurls.js index 495188b..771a2fb 100644 --- a/clearurls.js +++ b/clearurls.js @@ -77,7 +77,7 @@ fetchFromURL(); * @param {String} _name Provider name * @param {boolean} completeProvider Set URL Pattern as rule */ -function Provider(_name,_completeProvider=false){ +function Provider(_name,_completeProvider){ var name = name; var urlPattern; var rules = new Array(); @@ -90,7 +90,7 @@ function Provider(_name,_completeProvider=false){ */ this.setURLPattern = function(urlPatterns) { if(_completeProvider){ - rules.push(urlPattern); + rules.push(urlPatterns); } urlPattern = new RegExp(urlPatterns, "mgi"); diff --git a/data/data.json b/data/data.json index 2c2fbe3..86debed 100644 --- a/data/data.json +++ b/data/data.json @@ -55,7 +55,7 @@ "exceptions": [] }, "doubleclick": { - "urlPattern": ".*(doubleclick\\.net)\\/.*", + "urlPattern": ".*(doubleclick).*", "completeProvider": true, "rules": [], "exceptions": []