| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 if (subscription instanceof DownloadableSubscription && !subscription.last
Download) | 235 if (subscription instanceof DownloadableSubscription && !subscription.last
Download) |
| 236 Synchronizer.execute(subscription); | 236 Synchronizer.execute(subscription); |
| 237 } | 237 } |
| 238 } | 238 } |
| 239 | 239 |
| 240 if (!addSubscription && !addAcceptable) | 240 if (!addSubscription && !addAcceptable) |
| 241 return; | 241 return; |
| 242 | 242 |
| 243 function notifyUser() | 243 function notifyUser() |
| 244 { | 244 { |
| 245 ext.pages.open(ext.getURL("firstRun.html")); | 245 if (!Prefs.suppress_first_run_page) |
| 246 ext.pages.open(ext.getURL("firstRun.html")); |
| 246 } | 247 } |
| 247 | 248 |
| 248 if (addSubscription) | 249 if (addSubscription) |
| 249 { | 250 { |
| 250 // Load subscriptions data | 251 // Load subscriptions data |
| 251 var request = new XMLHttpRequest(); | 252 var request = new XMLHttpRequest(); |
| 252 request.open("GET", "subscriptions.xml"); | 253 request.open("GET", "subscriptions.xml"); |
| 253 request.addEventListener("load", function() | 254 request.addEventListener("load", function() |
| 254 { | 255 { |
| 255 var node = Utils.chooseFilterSubscription(request.responseXML.getElementsB
yTagName("subscription")); | 256 var node = Utils.chooseFilterSubscription(request.responseXML.getElementsB
yTagName("subscription")); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 page.sendMessage({type: "clickhide-deactivate"}); | 606 page.sendMessage({type: "clickhide-deactivate"}); |
| 606 refreshIconAndContextMenu(page); | 607 refreshIconAndContextMenu(page); |
| 607 }); | 608 }); |
| 608 | 609 |
| 609 setTimeout(function() | 610 setTimeout(function() |
| 610 { | 611 { |
| 611 var notificationToShow = NotificationStorage.getNextToShow(); | 612 var notificationToShow = NotificationStorage.getNextToShow(); |
| 612 if (notificationToShow) | 613 if (notificationToShow) |
| 613 showNotification(notificationToShow); | 614 showNotification(notificationToShow); |
| 614 }, 3 * 60 * 1000); | 615 }, 3 * 60 * 1000); |
| OLD | NEW |