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

Side by Side Diff: lib/prefs.js

Issue 29338315: Issue 3801 - Add pre-configurable preference for additional subscriptions (Closed)
Patch Set: Created March 15, 2016, 1:40 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/managed-storage-schema.json ('k') | lib/subscriptionInit.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 * 126 *
127 * @type {boolean} 127 * @type {boolean}
128 */ 128 */
129 defaults.shouldShowBlockElementMenu = true; 129 defaults.shouldShowBlockElementMenu = true;
130 /** 130 /**
131 * Whether to collapse placeholders for blocked elements. 131 * Whether to collapse placeholders for blocked elements.
132 * 132 *
133 * @type {boolean} 133 * @type {boolean}
134 */ 134 */
135 defaults.hidePlaceholders = true; 135 defaults.hidePlaceholders = true;
136 /**
137 * Whether to suppress the first run page. This preference isn't
138 * set by the extension but can be pre-configured externally.
139 *
140 * @see https://adblockplus.org/development-builds/suppressing-the-first-run-pag e-on-chrome
141 * @type {boolean}
142 */
143 defaults.suppress_first_run_page = false;
144 136
145 /** 137 /**
146 * Whether notification opt-out UI should be shown. 138 * Whether notification opt-out UI should be shown.
147 * @type {boolean} 139 * @type {boolean}
148 */ 140 */
149 defaults.notifications_showui = false; 141 defaults.notifications_showui = false;
150 142
151 /** 143 /**
152 * Notification categories to be ignored. 144 * Notification categories to be ignored.
153 * 145 *
154 * @type {string[]} 146 * @type {string[]}
155 */ 147 */
156 defaults.notifications_ignoredcategories = []; 148 defaults.notifications_ignoredcategories = [];
157 149
158 /** 150 /**
159 * Whether to show the developer tools panel. 151 * Whether to show the developer tools panel.
160 * 152 *
161 * @type {boolean} 153 * @type {boolean}
162 */ 154 */
163 defaults.show_devtools_panel = true; 155 defaults.show_devtools_panel = true;
164 156
165 /** 157 /**
158 * Whether to suppress the first run page. This preference isn't
159 * set by the extension but can be pre-configured externally.
160 *
161 * @see https://adblockplus.org/development-builds/suppressing-the-first-run-pag e-on-chrome
162 * @type {boolean}
163 */
164 defaults.suppress_first_run_page = false;
165
166 /**
167 * Additonal subscriptions to be automatically added when the extension is
168 * loaded. This preference isn't set by the extension but can be pre-configured
169 * externally.
170 *
171 * @type {string[]}
172 */
173 defaults.additional_subscriptions = [];
174
175 /**
166 * @namespace 176 * @namespace
167 * @static 177 * @static
168 */ 178 */
169 let Prefs = exports.Prefs = { 179 let Prefs = exports.Prefs = {
170 /** 180 /**
171 * Fired when the value of a preference changes. 181 * Fired when the value of a preference changes.
172 * 182 *
173 * @event 183 * @event
174 * @property {string} pref The name of the preference that changed. 184 * @property {string} pref The name of the preference that changed.
175 */ 185 */
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 Prefs.onChanged._dispatch(pref); 293 Prefs.onChanged._dispatch(pref);
284 } 294 }
285 } 295 }
286 }); 296 });
287 } 297 }
288 298
289 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded); 299 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded);
290 } 300 }
291 301
292 init(); 302 init();
OLDNEW
« no previous file with comments | « chrome/managed-storage-schema.json ('k') | lib/subscriptionInit.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld