OLD | NEW |
(Empty) | |
| 1 <h1>Settings Overrides</h1> |
| 2 |
| 3 |
| 4 <style> |
| 5 #pics { |
| 6 margin:2em 1em 1.5em; |
| 7 } |
| 8 |
| 9 #pics td { |
| 10 text-align:center; |
| 11 width:50%!important; |
| 12 border:none; |
| 13 padding:0 1em; |
| 14 font-size:90%; |
| 15 } |
| 16 |
| 17 #pics img { |
| 18 width:188; |
| 19 height:246; |
| 20 border:none; |
| 21 } |
| 22 </style> |
| 23 |
| 24 <p> |
| 25 Settings overrides are a way for extensions to override selected Chrome settings |
| 26 and user interface properties. |
| 27 </p> |
| 28 |
| 29 <p> |
| 30 An extension can override the following properties: |
| 31 </p> |
| 32 |
| 33 <p> |
| 34 <b>Bookmarks User Interface:</b> |
| 35 <ul> |
| 36 <li> |
| 37 Bookmark button: the "star" button that appears on the right side of the |
| 38 omnibox. Extensions may remove this button using the settings overrides, and |
| 39 optionally replace it with a browser action or page action. |
| 40 </li> |
| 41 |
| 42 <li> |
| 43 Bookmark shortcut: the shortcut key that is used to bookmark a page (Ctrl-D |
| 44 on Windows). Extensions may remove this shortcut via the settings overrides, |
| 45 and optionally bind their own command to it using the <code>commands</code> |
| 46 section of the manifest. |
| 47 </li> |
| 48 </ul> |
| 49 </p> |
| 50 |
| 51 <p class="note"> |
| 52 <b>Note:</b> Settings overrides are only enabled in the Chrome Dev release, and |
| 53 Chrome must be started with the <code>--enable-override-bookmarks-ui=1</code> |
| 54 command line flag to enable bookmarks user interface overrides.</p> |
| 55 |
| 56 <h2 id="manifest">Manifest</h2> |
| 57 |
| 58 <p> |
| 59 Register settings overrides in the |
| 60 <a href="manifest.html">extension manifest</a> like this: |
| 61 </p> |
| 62 |
| 63 <pre>{ |
| 64 "name": "My extension", |
| 65 ... |
| 66 |
| 67 <b> "chrome_settings_overrides" : { |
| 68 "bookmarks_ui": { |
| 69 "remove_button": "true", |
| 70 "remove_bookmark_shortcut": "true" |
| 71 } |
| 72 }</b>, |
| 73 ... |
| 74 }</pre> |
OLD | NEW |