| 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> | |
| 9 <p> | |
| 10 Register the settings you want to override in the | |
| 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 | |
| 50 <h2 id="others">Homepage, Search Provider, and Startup Pages</h2> | 7 <h2 id="others">Homepage, Search Provider, and Startup Pages</h2> |
| 51 <p> | 8 <p> |
| 52 Here is an example how <a href="#homepage">homepage</a>, <a | 9 Here is an example how <a href="#homepage">homepage</a>, <a |
| 53 href="#search_provider">search provider</a> and <a href="#startup_pages">startup | 10 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 | 11 pages</a> can be modified in the <a href="manifest.html">extension |
| 55 manifest</a>.</p> | 12 manifest</a>.</p> |
| 56 | 13 |
| 57 <pre>{ | 14 <pre>{ |
| 58 "name": "My extension", | 15 "name": "My extension", |
| 59 ... | 16 ... |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 {{+partials.type_item | 63 {{+partials.type_item |
| 107 title:f.strings.properties | 64 title:f.strings.properties |
| 108 display_name:display_name | 65 display_name:display_name |
| 109 items:f.properties | 66 items:f.properties |
| 110 item_partial:(partials.parameter_full hideParamTOC:true)/}} | 67 item_partial:(partials.parameter_full hideParamTOC:true)/}} |
| 111 </table> | 68 </table> |
| 112 {{/}} | 69 {{/}} |
| 113 {{/}} | 70 {{/}} |
| 114 </ul> | 71 </ul> |
| 115 | 72 |
| OLD | NEW |