Index: lib/antiadblockInit.js |
=================================================================== |
--- a/lib/antiadblockInit.js |
+++ b/lib/antiadblockInit.js |
@@ -46,10 +46,17 @@ |
{ |
let urlFilters = []; |
for (let filter of subscription.filters) |
+ { |
if (filter instanceof ActiveFilter) |
+ { |
for (let domain in filter.domains) |
- if (domain && urlFilters.indexOf(domain) == -1) |
- urlFilters.push(domain); |
+ { |
+ let urlFilter = "||" + domain + "^"; |
+ if (domain && filter.domains[domain] && urlFilters.indexOf(urlFilter) == -1) |
+ urlFilters.push(urlFilter); |
+ } |
+ } |
+ } |
notification.urlFilters = urlFilters; |
Notification.addNotification(notification); |
Notification.addQuestionListener(notification.id, notificationListener); |