| 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-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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 modules.prefs = { | 94 modules.prefs = { |
| 95 Prefs: { | 95 Prefs: { |
| 96 onChanged: new Notifier() | 96 onChanged: new Notifier() |
| 97 } | 97 } |
| 98 }; | 98 }; |
| 99 var prefs = { | 99 var prefs = { |
| 100 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], | 100 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], |
| 101 notifications_showui: params.showNotificationUI, | 101 notifications_showui: params.showNotificationUI, |
| 102 safari_contentblocker: false, | 102 safari_contentblocker: false, |
| 103 shouldShowBlockElementMenu: true, | 103 shouldShowBlockElementMenu: true, |
| 104 show_devtools_panel: true, |
| 104 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exc
eptionrules.txt" | 105 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exc
eptionrules.txt" |
| 105 }; | 106 }; |
| 106 Object.keys(prefs).forEach(function(key) | 107 Object.keys(prefs).forEach(function(key) |
| 107 { | 108 { |
| 108 Object.defineProperty(modules.prefs.Prefs, key, { | 109 Object.defineProperty(modules.prefs.Prefs, key, { |
| 109 get: function() | 110 get: function() |
| 110 { | 111 { |
| 111 return prefs[key]; | 112 return prefs[key]; |
| 112 }, | 113 }, |
| 113 set: function(value) | 114 set: function(value) |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 | 469 |
| 469 if (params.safariContentBlocker) | 470 if (params.safariContentBlocker) |
| 470 { | 471 { |
| 471 global.safari = { | 472 global.safari = { |
| 472 extension: { | 473 extension: { |
| 473 setContentBlocker: function() {} | 474 setContentBlocker: function() {} |
| 474 } | 475 } |
| 475 }; | 476 }; |
| 476 } | 477 } |
| 477 })(this); | 478 })(this); |
| LEFT | RIGHT |