| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This Source Code is subject to the terms of the Mozilla Public License | 2 * This Source Code is subject to the terms of the Mozilla Public License |
| 3 * version 2.0 (the "License"). You can obtain a copy of the License at | 3 * version 2.0 (the "License"). You can obtain a copy of the License at |
| 4 * http://mozilla.org/MPL/2.0/. | 4 * http://mozilla.org/MPL/2.0/. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 let {Prefs} = require("prefs"); | 7 let {Prefs} = require("prefs"); |
| 8 | 8 |
| 9 let domainData; | 9 let domainData; |
| 10 let nodeData; | 10 let nodeData; |
| 11 let nodeID; | 11 let nodeID; |
| 12 let selectedNode = null; | 12 let selectedNode = null; |
| 13 let advancedMode = false; | 13 var advancedMode = false; |
| 14 let treeView = null; | 14 let treeView = null; |
| 15 let stylesheetData; | 15 let stylesheetData; |
| 16 let previewStyle = null; | 16 let previewStyle = null; |
| 17 | 17 |
| 18 let abpURL = Cc["@adblockplus.org/abp/public;1"].getService(Ci.nsIURI); | 18 let abpURL = Cc["@adblockplus.org/abp/public;1"].getService(Ci.nsIURI); |
| 19 Cu.import(abpURL.spec); | 19 Cu.import(abpURL.spec); |
| 20 | 20 |
| 21 /******************* | 21 /******************* |
| 22 * TreeView object * | 22 * TreeView object * |
| 23 *******************/ | 23 *******************/ |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 | 567 |
| 568 fillAttributes(item.nodeData); | 568 fillAttributes(item.nodeData); |
| 569 } | 569 } |
| 570 | 570 |
| 571 function addExpression() | 571 function addExpression() |
| 572 { | 572 { |
| 573 AdblockPlus.addPatterns([document.getElementById("expression").value]); | 573 AdblockPlus.addPatterns([document.getElementById("expression").value]); |
| 574 | 574 |
| 575 togglePreview(false); | 575 togglePreview(false); |
| 576 } | 576 } |
| OLD | NEW |