OLD | NEW |
(Empty) | |
| 1 <!-- BEGIN AUTHORED CONTENT --> |
| 2 <p> |
| 3 The context menus module allows you |
| 4 to add items to Chrome's context menu. |
| 5 </p> |
| 6 |
| 7 <p> |
| 8 You can choose what types of objects |
| 9 your context menu additions apply to, |
| 10 such as images, hyperlinks, and pages. |
| 11 </P> |
| 12 |
| 13 <p> |
| 14 You can create as many context menu items |
| 15 as you need, but if more than one |
| 16 from your extension is visible at once, |
| 17 Google Chrome automatically collapses them |
| 18 into a single parent menu. |
| 19 </p> |
| 20 |
| 21 <h2 id="manifest">Manifest</h2> |
| 22 <p>You must declare the "contextMenus" permission |
| 23 in your extension's manifest to use the API. |
| 24 Also, you should specify a 16x16-pixel icon |
| 25 for display next to your menu item. |
| 26 For example: |
| 27 </p> |
| 28 |
| 29 <pre>{ |
| 30 "name": "My extension", |
| 31 ... |
| 32 "permissions": [ |
| 33 <b>"contextMenus"</b> |
| 34 ], |
| 35 "icons": { |
| 36 <b>"16": "icon-bitty.png",</b> |
| 37 "48": "icon-small.png", |
| 38 "128": "icon-large.png" |
| 39 }, |
| 40 ... |
| 41 }</pre> |
| 42 |
| 43 <!-- END AUTHORED CONTENT --> |
OLD | NEW |