OLD | NEW |
1 <h1>Settings Overrides</h1> | 1 <h1>Settings Overrides</h1> |
2 | 2 |
3 <p> | 3 <p> |
4 Settings overrides are a way for extensions to override selected Chrome settings | 4 Settings overrides are a way for extensions to override selected Chrome settings
. |
5 and user interface properties. | |
6 </p> | 5 </p> |
7 | 6 |
8 <h2 id="bookmarks">Bookmarks User Interface</h2> | 7 <h2 id="bookmarks">Bookmarks User Interface (deprecated)</h2> |
9 <p> | 8 <p> |
10 Register the settings you want to override in the | 9 Use of Settings Overrides for overriding bookmarks user interface properties is
deprecated. <a href="ui_override.html">User Interface Overrides</a> should be us
ed instead. |
11 <a href="manifest.html">extension manifest</a> like this: | |
12 </p> | |
13 | |
14 <pre>{ | |
15 "name": "My extension", | |
16 ... | |
17 <b> | |
18 "chrome_settings_overrides" : { | |
19 "bookmarks_ui": { | |
20 "remove_button": "true", | |
21 "remove_bookmark_shortcut": "true" | |
22 } | |
23 }</b>, | |
24 ... | |
25 }</pre> | |
26 | |
27 <p> | |
28 <ul> | |
29 <li> | |
30 <a href="#bookmarks_ui">Bookmark button</a>: the "star" button that is used | |
31 to bookmark pages. Extensions may remove this button using the settings | |
32 overrides, and optionally replace it with a browser action or page action. | |
33 </li> | |
34 | |
35 <li> | |
36 <a href="#bookmarks_ui">Bookmark shortcut</a>: the shortcut key that is | |
37 used to bookmark a page (Ctrl-D on Windows). Extensions may remove this | |
38 shortcut via the settings overrides, and optionally bind their own command | |
39 to it using the <code>commands</code> section of the manifest. | |
40 </li> | |
41 </ul> | |
42 </p> | |
43 | |
44 <p class="note"> | |
45 <b>Note:</b> Settings overrides for <code>bookmarks_ui</code> are only enabled | |
46 in the Chrome Dev release, and Chrome must be started with the | |
47 <code>--enable-override-bookmarks-ui=1</code> command line flag to enable | |
48 bookmarks user interface overrides.</p> | |
49 | 10 |
50 <h2 id="others">Homepage, Search Provider, and Startup Pages</h2> | 11 <h2 id="others">Homepage, Search Provider, and Startup Pages</h2> |
51 <p> | 12 <p> |
52 Here is an example how <a href="#homepage">homepage</a>, <a | 13 Here is an example how <a href="#homepage">homepage</a>, <a |
53 href="#search_provider">search provider</a> and <a href="#startup_pages">startup | 14 href="#search_provider">search provider</a> and <a href="#startup_pages">startup |
54 pages</a> can be modified in the <a href="manifest.html">extension | 15 pages</a> can be modified in the <a href="manifest.html">extension |
55 manifest</a>.</p> | 16 manifest</a>.</p> |
56 | 17 |
57 <pre>{ | 18 <pre>{ |
58 "name": "My extension", | 19 "name": "My extension", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 {{+partials.type_item | 67 {{+partials.type_item |
107 title:f.strings.properties | 68 title:f.strings.properties |
108 display_name:display_name | 69 display_name:display_name |
109 items:f.properties | 70 items:f.properties |
110 item_partial:(partials.parameter_full hideParamTOC:true)/}} | 71 item_partial:(partials.parameter_full hideParamTOC:true)/}} |
111 </table> | 72 </table> |
112 {{/}} | 73 {{/}} |
113 {{/}} | 74 {{/}} |
114 </ul> | 75 </ul> |
115 | 76 |
OLD | NEW |