OLD | NEW |
1 <div id="pageData-title" class="pageData">Formats: Manifest Files</div> | 1 <div id="pageData-title" class="pageData">Formats: Manifest Files</div> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 2 <div id="pageData-showTOC" class="pageData">true</div> |
3 | 3 |
4 <p> | 4 <p> |
5 Every extension has a | 5 Every extension has a |
6 <a href="http://www.json.org">JSON</a>-formatted manifest file, | 6 <a href="http://www.json.org">JSON</a>-formatted manifest file, |
7 named <code>manifest.json</code>, | 7 named <code>manifest.json</code>, |
8 that provides important information about the extension. | 8 that provides important information about the extension. |
9 </p> | 9 </p> |
10 | 10 |
11 <h2 id="overview"> Field summary </h2> | 11 <h2 id="overview"> Field summary </h2> |
12 | 12 |
13 <p> | 13 <p> |
14 The following code shows the supported manifest fields, | 14 The following code shows the supported manifest fields, |
15 with links to the page that discusses each field. | 15 with links to the page that discusses each field. |
16 The only fields that are required for every extension | 16 The only fields that are required for every extension |
17 are <b>name</b> and <b>version</b>. | 17 are <b>name</b> and <b>version</b>. |
18 </p> | 18 </p> |
19 | 19 |
20 <pre> | 20 <pre> |
21 { | 21 { |
22 <b>"<a href="#name">name</a>"</b>: "<em>My Extension</em>", | 22 <b>"<a href="#name">name</a>"</b>: "<em>My Extension</em>", |
23 <b>"<a href="autoupdate.html">version</a>"</b>: "<em>versionString</em>", | 23 <b>"<a href="autoupdate.html">version</a>"</b>: "<em>versionString</em>", |
24 | 24 |
25 "<a href="#description">description</a>": "<em>A plain text description</em>", | 25 "<a href="#description">description</a>": "<em>A plain text description</em>", |
26 "<a href="#icons">icons</a>": { ... }, | 26 "<a href="#icons">icons</a>": { ... }, |
27 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em
>.xml", | 27 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em
>.xml", |
28 | 28 |
29 "<a href="background_pages.html">background_page</a>": "<em>aFile</em>.html", | 29 "<a href="background_pages.html">background_page</a>": "<em>aFile</em>.html", |
30 "<a href="content_scripts.html">content_scripts</a>": [...], | 30 "<a href="content_scripts.html">content_scripts</a>": [...], |
31 "<a href="pageActions.html">page_actions</a>": [...], | 31 "<a href="pageActions.html">page_actions</a>": [...], |
32 "<a href="#permissions">permissions</a>": [...], | 32 "<a href="#permissions">permissions</a>": [...], |
33 "<a href="npapi.html">plugins</a>": [...], | 33 "<a href="npapi.html">plugins</a>": [...], |
34 "<a href="themes.html">theme</a>": [...], | 34 "<a href="themes.html">theme</a>": [...], |
35 "<a href="toolstrip.html">toolstrips</a>": [...] | 35 "<a href="toolstrip.html">toolstrips</a>": [...] |
36 } | 36 } |
37 </pre> | 37 </pre> |
38 | 38 |
39 | 39 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 </pre> | 128 </pre> |
129 | 129 |
130 <p> | 130 <p> |
131 For more information, see | 131 For more information, see |
132 <a href="xhr.html">Cross-Origin XMLHttpRequest</a>, | 132 <a href="xhr.html">Cross-Origin XMLHttpRequest</a>, |
133 <a href="windows.html">Windows</a>, | 133 <a href="windows.html">Windows</a>, |
134 <a href="tabs.html">Tabs</a>, and | 134 <a href="tabs.html">Tabs</a>, and |
135 <a href="bookmarks.html">Bookmarks</a>. | 135 <a href="bookmarks.html">Bookmarks</a>. |
136 </p> | 136 </p> |
137 | 137 |
OLD | NEW |