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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 modules.utils = { | 85 modules.utils = { |
86 Utils: { | 86 Utils: { |
87 getDocLink: function(link) | 87 getDocLink: function(link) |
88 { | 88 { |
89 return "https://adblockplus.org/redirect?link=" + encodeURIComponent(lin
k); | 89 return "https://adblockplus.org/redirect?link=" + encodeURIComponent(lin
k); |
90 }, | 90 }, |
91 get appLocale() | 91 get appLocale() |
92 { | 92 { |
93 return parent.ext.i18n.getMessage("@@ui_locale").replace(/_/g, "-"); | 93 return parent.ext.i18n.getMessage("@@ui_locale").replace(/_/g, "-"); |
| 94 }, |
| 95 get readingDirection() |
| 96 { |
| 97 return parent.ext.i18n.getMessage("@@bidi_dir"); |
94 } | 98 } |
| 99 |
95 } | 100 } |
96 }; | 101 }; |
97 | 102 |
98 modules.prefs = {Prefs: new EventEmitter()}; | 103 modules.prefs = {Prefs: new EventEmitter()}; |
99 var prefs = { | 104 var prefs = { |
100 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], | 105 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], |
101 notifications_showui: params.showNotificationUI, | 106 notifications_showui: params.showNotificationUI, |
102 safari_contentblocker: false, | 107 safari_contentblocker: false, |
103 shouldShowBlockElementMenu: true, | 108 shouldShowBlockElementMenu: true, |
104 show_devtools_panel: true, | 109 show_devtools_panel: true, |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 485 |
481 if (params.safariContentBlocker) | 486 if (params.safariContentBlocker) |
482 { | 487 { |
483 global.safari = { | 488 global.safari = { |
484 extension: { | 489 extension: { |
485 setContentBlocker: function() {} | 490 setContentBlocker: function() {} |
486 } | 491 } |
487 }; | 492 }; |
488 } | 493 } |
489 })(this); | 494 })(this); |
OLD | NEW |