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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 addEnableSubscription(url); | 584 addEnableSubscription(url); |
585 closeDialog(); | 585 closeDialog(); |
586 break; | 586 break; |
587 case "open-dialog": | 587 case "open-dialog": |
588 openDialog(element.getAttribute("data-dialog")); | 588 openDialog(element.getAttribute("data-dialog")); |
589 break; | 589 break; |
590 case "save-custom-filters": | 590 case "save-custom-filters": |
591 sendMessageHandleErrors( | 591 sendMessageHandleErrors( |
592 { | 592 { |
593 type: "filters.importRaw", | 593 type: "filters.importRaw", |
594 text: E("custom-filters-raw").value | 594 text: E("custom-filters-raw").value, |
| 595 removeExisting: true |
595 }, | 596 }, |
596 function() | 597 function() |
597 { | 598 { |
598 E("custom-filters").classList.remove("mode-edit"); | 599 E("custom-filters").classList.remove("mode-edit"); |
599 }); | 600 }); |
600 break; | 601 break; |
601 case "switch-tab": | 602 case "switch-tab": |
602 document.body.setAttribute("data-tab", | 603 document.body.setAttribute("data-tab", |
603 element.getAttribute("data-tab")); | 604 element.getAttribute("data-tab")); |
604 break; | 605 break; |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 }); | 1120 }); |
1120 ext.backgroundPage.sendMessage( | 1121 ext.backgroundPage.sendMessage( |
1121 { | 1122 { |
1122 type: "subscriptions.listen", | 1123 type: "subscriptions.listen", |
1123 filter: ["added", "disabled", "homepage", "lastDownload", "removed", | 1124 filter: ["added", "disabled", "homepage", "lastDownload", "removed", |
1124 "title"] | 1125 "title"] |
1125 }); | 1126 }); |
1126 | 1127 |
1127 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); | 1128 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); |
1128 })(); | 1129 })(); |
OLD | NEW |