LEFT | RIGHT |
(no file at all) | |
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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 | 85 |
86 modules.utils = { | 86 modules.utils = { |
87 Utils: { | 87 Utils: { |
88 getDocLink(link) | 88 getDocLink(link) |
89 { | 89 { |
90 return "https://adblockplus.org/redirect?link=" + encodeURIComponent(lin
k); | 90 return "https://adblockplus.org/redirect?link=" + encodeURIComponent(lin
k); |
91 }, | 91 }, |
92 get appLocale() | 92 get appLocale() |
93 { | 93 { |
94 return parent.ext.i18n.getMessage("@@ui_locale").replace(/_/g, "-"); | 94 return parent.ext.i18n.locale.replace(/_/g, "-"); |
| 95 }, |
| 96 get readingDirection() |
| 97 { |
| 98 return /^(?:ar|fa|he|ug|ur)\b/.test(this.appLocale) ? "rtl" : "ltr"; |
95 } | 99 } |
96 } | 100 } |
97 }; | 101 }; |
98 | 102 |
99 modules.prefs = {Prefs: new EventEmitter()}; | 103 modules.prefs = {Prefs: new EventEmitter()}; |
100 let prefs = { | 104 let prefs = { |
101 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], | 105 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], |
102 notifications_showui: params.showNotificationUI, | 106 notifications_showui: params.showNotificationUI, |
103 shouldShowBlockElementMenu: true, | 107 shouldShowBlockElementMenu: true, |
104 show_devtools_panel: true, | 108 show_devtools_panel: true, |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 }, | 567 }, |
564 filter: { | 568 filter: { |
565 text: "||example.com/some-annoying-popup$popup", | 569 text: "||example.com/some-annoying-popup$popup", |
566 whitelisted: false, | 570 whitelisted: false, |
567 userDefined: true, | 571 userDefined: true, |
568 subscription: null | 572 subscription: null |
569 } | 573 } |
570 }); | 574 }); |
571 }); | 575 }); |
572 }()); | 576 }()); |
LEFT | RIGHT |