Index: lib/rules.js |
=================================================================== |
--- a/lib/rules.js |
+++ b/lib/rules.js |
@@ -150,6 +150,13 @@ |
else |
domain = domain.replace(searchString, replacement); |
} |
+ |
+ // Apply user's whitelist |
+ let whitelist = Prefs.whitelist; |
+ if (whitelist.hasOwnProperty(domain) || /^www\./.test(domain) && whitelist.hasOwnProperty(domain.substr(4))) |
+ { |
+ return domain; |
+ } |
Wladimir Palant
2012/09/21 14:40:25
That's not what should be done with the whitelist.
|
// Now apply our rules on the domain name |
for (let i = 0, l = rules.expressions.length; i < l; i++) |