OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 var FilterNotifier = require("filterNotifier").FilterNotifier; | 45 var FilterNotifier = require("filterNotifier").FilterNotifier; |
46 var ElemHide = require("elemHide").ElemHide; | 46 var ElemHide = require("elemHide").ElemHide; |
47 var defaultMatcher = require("matcher").defaultMatcher; | 47 var defaultMatcher = require("matcher").defaultMatcher; |
48 var Prefs = require("prefs").Prefs; | 48 var Prefs = require("prefs").Prefs; |
49 var Synchronizer = require("synchronizer").Synchronizer; | 49 var Synchronizer = require("synchronizer").Synchronizer; |
50 var Utils = require("utils").Utils; | 50 var Utils = require("utils").Utils; |
51 var parseFilters = require("filterValidation").parseFilters; | 51 var parseFilters = require("filterValidation").parseFilters; |
52 var composeFilters = require("filterComposer").composeFilters; | 52 var composeFilters = require("filterComposer").composeFilters; |
53 var updateIcon = require("icon").updateIcon; | 53 var updateIcon = require("icon").updateIcon; |
54 var initNotifications = require("notificationHelper").initNotifications; | 54 var initNotifications = require("notificationHelper").initNotifications; |
| 55 var showNextNotificationForUrl = require("notificationHelper").showNextNotificat
ionForUrl; |
55 | 56 |
56 var seenDataCorruption = false; | 57 var seenDataCorruption = false; |
57 var filterlistsReinitialized = false; | 58 var filterlistsReinitialized = false; |
58 | 59 |
59 function init() | 60 function init() |
60 { | 61 { |
61 var filtersLoaded = false; | 62 var filtersLoaded = false; |
62 var prefsLoaded = false; | 63 var prefsLoaded = false; |
63 | 64 |
64 var checkLoaded = function() | 65 var checkLoaded = function() |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 } | 428 } |
428 break; | 429 break; |
429 } | 430 } |
430 }); | 431 }); |
431 | 432 |
432 // update icon when page changes location | 433 // update icon when page changes location |
433 ext.pages.onLoading.addListener(function(page) | 434 ext.pages.onLoading.addListener(function(page) |
434 { | 435 { |
435 page.sendMessage({type: "clickhide-deactivate"}); | 436 page.sendMessage({type: "clickhide-deactivate"}); |
436 refreshIconAndContextMenu(page); | 437 refreshIconAndContextMenu(page); |
| 438 showNextNotificationForUrl(page.url); |
437 }); | 439 }); |
OLD | NEW |