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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 let {Downloader, Downloadable, | 25 let {Downloader, Downloadable, |
26 MILLIS_IN_SECOND, MILLIS_IN_MINUTE, MILLIS_IN_HOUR, MILLIS_IN_DAY} = require
("downloader"); | 26 MILLIS_IN_SECOND, MILLIS_IN_MINUTE, MILLIS_IN_HOUR, MILLIS_IN_DAY} = require
("downloader"); |
27 let {Filter, CommentFilter} = require("filterClasses"); | 27 let {Filter, CommentFilter} = require("filterClasses"); |
28 let {FilterStorage} = require("filterStorage"); | 28 let {FilterStorage} = require("filterStorage"); |
29 let {FilterNotifier} = require("filterNotifier"); | 29 let {FilterNotifier} = require("filterNotifier"); |
30 let {Prefs} = require("prefs"); | 30 let {Prefs} = require("prefs"); |
31 let {Subscription, DownloadableSubscription} = require("subscriptionClasses"); | 31 let {Subscription, DownloadableSubscription} = require("subscriptionClasses"); |
32 let {Utils} = require("utils"); | 32 let {Utils} = require("utils"); |
33 | 33 |
34 let INITIAL_DELAY = 6 * MILLIS_IN_MINUTE; | 34 let INITIAL_DELAY = 1 * MILLIS_IN_MINUTE; |
35 let CHECK_INTERVAL = 1 * MILLIS_IN_HOUR; | 35 let CHECK_INTERVAL = 1 * MILLIS_IN_HOUR; |
36 let DEFAULT_EXPIRATION_INTERVAL = 5 * MILLIS_IN_DAY; | 36 let DEFAULT_EXPIRATION_INTERVAL = 5 * MILLIS_IN_DAY; |
37 | 37 |
38 /** | 38 /** |
39 * The object providing actual downloading functionality. | 39 * The object providing actual downloading functionality. |
40 * @type Downloader | 40 * @type Downloader |
41 */ | 41 */ |
42 let downloader = null; | 42 let downloader = null; |
43 | 43 |
44 /** | 44 /** |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 let data = "[Adblock]\n" + subscription.filters.map((f) => f.text).j
oin("\n"); | 311 let data = "[Adblock]\n" + subscription.filters.map((f) => f.text).j
oin("\n"); |
312 redirectCallback("data:text/plain," + encodeURIComponent(data)); | 312 redirectCallback("data:text/plain," + encodeURIComponent(data)); |
313 } | 313 } |
314 }, false); | 314 }, false); |
315 request.send(null); | 315 request.send(null); |
316 } | 316 } |
317 } | 317 } |
318 }, | 318 }, |
319 }; | 319 }; |
320 Synchronizer.init(); | 320 Synchronizer.init(); |
OLD | NEW |