| 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-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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 let allowSnippets = false; | 145 let allowSnippets = false; |
| 146 for (let subscription of filter.subscriptions()) | 146 for (let subscription of filter.subscriptions()) |
| 147 { | 147 { |
| 148 if (!subscription.disabled) | 148 if (!subscription.disabled) |
| 149 { | 149 { |
| 150 hasEnabled = true; | 150 hasEnabled = true; |
| 151 | 151 |
| 152 // Allow snippets to be executed only by the circumvention lists or the | 152 // Allow snippets to be executed only by the circumvention lists or the |
| 153 // user's own filters. | 153 // user's own filters. |
| 154 if (subscription.type == "circumvention" || | 154 if (subscription.type == "circumvention" || |
| 155 subscription.url == "https://easylist-downloads.adblockplus.org/abp-fi
lters-anti-cv.txt" || |
| 155 subscription instanceof SpecialSubscription) | 156 subscription instanceof SpecialSubscription) |
| 156 { | 157 { |
| 157 allowSnippets = true; | 158 allowSnippets = true; |
| 158 break; | 159 break; |
| 159 } | 160 } |
| 160 } | 161 } |
| 161 } | 162 } |
| 162 if (!hasEnabled) | 163 if (!hasEnabled) |
| 163 return; | 164 return; |
| 164 | 165 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 { | 341 { |
| 341 if (!subscription.disabled) | 342 if (!subscription.disabled) |
| 342 addFilters(subscription.filters); | 343 addFilters(subscription.filters); |
| 343 } | 344 } |
| 344 } | 345 } |
| 345 | 346 |
| 346 function onSave() | 347 function onSave() |
| 347 { | 348 { |
| 348 isDirty = 0; | 349 isDirty = 0; |
| 349 } | 350 } |
| OLD | NEW |