| 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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2017 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
| 13 * | 13 * |
| (...skipping 18 matching lines...) Expand all Loading... |
| 32 Filter.knownFilters = Object.create(null); | 32 Filter.knownFilters = Object.create(null); |
| 33 | 33 |
| 34 defaultMatcher.clear(); | 34 defaultMatcher.clear(); |
| 35 ElemHide.clear(); | 35 ElemHide.clear(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 function restoreFilterComponents() | 38 function restoreFilterComponents() |
| 39 { | 39 { |
| 40 } | 40 } |
| 41 | 41 |
| 42 function preparePrefs() | |
| 43 { | |
| 44 this._pbackup = Object.create(null); | |
| 45 for (let pref in Prefs) | |
| 46 { | |
| 47 let value = Prefs[pref]; | |
| 48 this._pbackup[pref] = value; | |
| 49 } | |
| 50 Prefs.enabled = true; | |
| 51 } | |
| 52 | |
| 53 function restorePrefs() | |
| 54 { | |
| 55 for (let pref in this._pbackup) | |
| 56 Prefs[pref] = this._pbackup[pref]; | |
| 57 } | |
| 58 | |
| 59 function executeFirstRunActions() | 42 function executeFirstRunActions() |
| 60 { | 43 { |
| 61 } | 44 } |
| LEFT | RIGHT |