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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 { | 292 { |
293 let subscriptions = FilterStorage.subscriptions.filter(s => s instanceof Spe
cialSubscription); | 293 let subscriptions = FilterStorage.subscriptions.filter(s => s instanceof Spe
cialSubscription); |
294 let minVersion = "2.0" | 294 let minVersion = "2.0" |
295 let list = []; | 295 let list = []; |
296 for (let i = 0; i < subscriptions.length; i++) | 296 for (let i = 0; i < subscriptions.length; i++) |
297 { | 297 { |
298 let subscription = subscriptions[i]; | 298 let subscription = subscriptions[i]; |
299 let typeAddition = ""; | 299 let typeAddition = ""; |
300 if (subscription.defaults) | 300 if (subscription.defaults) |
301 typeAddition = "/" + subscription.defaults.join("/"); | 301 typeAddition = "/" + subscription.defaults.join("/"); |
302 list.push("! [" + subscription.title + "]" + typeAddition); | 302 list.push("! [" + getSubscriptionTitle(subscription) + "]" + typeAddition)
; |
303 for (let j = 0; j < subscription.filters.length; j++) | 303 for (let j = 0; j < subscription.filters.length; j++) |
304 { | 304 { |
305 let filter = subscription.filters[j]; | 305 let filter = subscription.filters[j]; |
306 // Skip checksums | 306 // Skip checksums |
307 if (filter instanceof CommentFilter && this.CHECKSUM_REGEXP.test(filter.
text)) | 307 if (filter instanceof CommentFilter && this.CHECKSUM_REGEXP.test(filter.
text)) |
308 continue; | 308 continue; |
309 // Skip group headers | 309 // Skip group headers |
310 if (filter instanceof CommentFilter && this.GROUPTITLE_REGEXP.test(filte
r.text)) | 310 if (filter instanceof CommentFilter && this.GROUPTITLE_REGEXP.test(filte
r.text)) |
311 continue; | 311 continue; |
312 list.push(filter.text); | 312 list.push(filter.text); |
(...skipping 23 matching lines...) Expand all Loading... |
336 Utils.alert(window, E("backupButton").getAttribute("_backupError"), E("b
ackupButton").getAttribute("_backupDialogTitle")); | 336 Utils.alert(window, E("backupButton").getAttribute("_backupError"), E("b
ackupButton").getAttribute("_backupDialogTitle")); |
337 } | 337 } |
338 }); | 338 }); |
339 } | 339 } |
340 }; | 340 }; |
341 | 341 |
342 window.addEventListener("load", function() | 342 window.addEventListener("load", function() |
343 { | 343 { |
344 Backup.init(); | 344 Backup.init(); |
345 }, false); | 345 }, false); |
OLD | NEW |