Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: background.js

Issue 29345232: Issue 4084 - Do not use @@bidi_dir directly in adblockplusui (Closed)
Left Patch Set: Created May 29, 2016, 2:15 a.m.
Right Patch Set: Fix rebase artifacts Created Aug. 29, 2017, 11:25 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | ext/common.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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
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 }());
LEFTRIGHT
« no previous file | ext/common.js » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld