LEFT | RIGHT |
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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 subscription.disabled = false; | 243 subscription.disabled = false; |
244 subscription.title = node.getAttribute("title"); | 244 subscription.title = node.getAttribute("title"); |
245 subscription.homepage = node.getAttribute("homepage"); | 245 subscription.homepage = node.getAttribute("homepage"); |
246 | 246 |
247 if (subscription instanceof DownloadableSubscription && | 247 if (subscription instanceof DownloadableSubscription && |
248 !subscription.lastDownload) | 248 !subscription.lastDownload) |
249 Synchronizer.execute(subscription); | 249 Synchronizer.execute(subscription); |
250 } | 250 } |
251 }) | 251 }) |
252 ).then(function() | 252 ) |
| 253 .then(function() |
253 { | 254 { |
254 if (!Prefs.suppress_first_run_page) | 255 if (!Prefs.suppress_first_run_page) |
255 ext.pages.open(ext.getURL("firstRun.html")); | 256 ext.pages.open(ext.getURL("firstRun.html")); |
256 }); | 257 }); |
257 } | 258 } |
258 | 259 |
259 Prefs.onChanged.addListener(function(name) | 260 Prefs.onChanged.addListener(function(name) |
260 { | 261 { |
261 if (name == "shouldShowBlockElementMenu") | 262 if (name == "shouldShowBlockElementMenu") |
262 refreshIconAndContextMenuForAllPages(); | 263 refreshIconAndContextMenuForAllPages(); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 } | 419 } |
419 }); | 420 }); |
420 | 421 |
421 // update icon when page changes location | 422 // update icon when page changes location |
422 ext.pages.onLoading.addListener(function(page) | 423 ext.pages.onLoading.addListener(function(page) |
423 { | 424 { |
424 page.sendMessage({type: "clickhide-deactivate"}); | 425 page.sendMessage({type: "clickhide-deactivate"}); |
425 refreshIconAndContextMenu(page); | 426 refreshIconAndContextMenu(page); |
426 showNextNotificationForUrl(page.url); | 427 showNextNotificationForUrl(page.url); |
427 }); | 428 }); |
LEFT | RIGHT |