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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 339 |
340 function onLoad() | 340 function onLoad() |
341 { | 341 { |
342 isDirty = 0; | 342 isDirty = 0; |
343 | 343 |
344 defaultMatcher.clear(); | 344 defaultMatcher.clear(); |
345 ElemHide.clear(); | 345 ElemHide.clear(); |
346 ElemHideEmulation.clear(); | 346 ElemHideEmulation.clear(); |
347 ElemHideExceptions.clear(); | 347 ElemHideExceptions.clear(); |
348 Snippets.clear(); | 348 Snippets.clear(); |
| 349 |
349 for (let subscription of filterStorage.subscriptions()) | 350 for (let subscription of filterStorage.subscriptions()) |
350 { | 351 { |
351 if (!subscription.disabled) | 352 if (!subscription.disabled) |
352 addSubscriptionFilters(subscription); | 353 addSubscriptionFilters(subscription); |
353 | |
354 subscription.freeFilters(); | |
355 } | 354 } |
356 } | 355 } |
357 | 356 |
358 function onSave() | 357 function onSave() |
359 { | 358 { |
360 isDirty = 0; | 359 isDirty = 0; |
361 } | 360 } |
LEFT | RIGHT |