1 <h1>Settings Overrides</h1>
4 Settings overrides are a way for extensions to override selected Chrome settings.
7 <h2 id="others">Homepage, Search Provider, and Startup Pages</h2>
9 Here is an example how <a href="#homepage">homepage</a>, <a
10 href="#search_provider">search provider</a> and <a href="#startup_pages">startup
11 pages</a> can be modified in the <a href="manifest">extension
12 manifest</a>. Web sites used in the settings API must be
13 <a href="https://support.google.com/webmasters/answer/35179">verified</a> (via
14 Webmaster Tools) as being associated with that item in the Chrome Web Store.
15 Note that if you verify ownership for a domain (for example, http://example.com)
16 you can use any subdomain or page (for example, http://app.example.com or
17 http://example.com/page.html) within your extension.</p>
20 "name": "My extension",
22 "chrome_settings_overrides": {
23 "homepage": "http://www.homepage.com",
25 "name": "name.__MSG_url_domain__",
26 "keyword": "keyword.__MSG_url_domain__",
27 "search_url": "http://www.foo.__MSG_url_domain__/s?q={searchTerms}",
28 "favicon_url": "http://www.foo.__MSG_url_domain__/favicon.ico",
29 "suggest_url": "http://www.foo.__MSG_url_domain__/suggest?q={searchTerms}",
30 "instant_url": "http://www.foo.__MSG_url_domain__/instant?q={searchTerms}",
31 "image_url": "http://www.foo.__MSG_url_domain__/image?q={searchTerms}",
32 "search_url_post_params": "search_lang=__MSG_url_domain__",
33 "suggest_url_post_params": "suggest_lang=__MSG_url_domain__",
34 "instant_url_post_params": "instant_lang=__MSG_url_domain__",
35 "image_url_post_params": "image_lang=__MSG_url_domain__",
37 "http://www.moo.__MSG_url_domain__/s?q={searchTerms}",
38 "http://www.noo.__MSG_url_domain__/s?q={searchTerms}"
43 "startup_pages": ["http://www.startup.com"]
45 "default_locale": "de",
49 <h2 id="customizing">Customizing values</h2>
50 <p>Values in the manifest can be customized in the following ways:</p>
53 All values of the <code>search_provider</code>, <code>homepage</code> and
54 <code>startup_pages</code> properties can be localized using the
55 $(ref:i18n chrome.i18n API).
58 For <a href="http://developer.chrome.com/extensions/external_extensions">external extensions</a>,
59 the <code>search_provider</code>, <code>homepage</code> and
60 <code>startup_pages</code> URL values can be parametrized using a registry key.
61 A new registry entry should be created next to the "update_url" key (see
62 instructions <a href="http://developer.chrome.com/extensions/external_extensions#registry">here</a>).
63 The value name is "install_parameter", the value data is an arbitrary string:
65 "update_url": "https://clients2.google.com/service/update2/crx",
66 "install_parameter": "Value"
68 All occurrences of the substring "__PARAM__" in the manifest URLs will be
69 substituted with the "install_parameter" value. If “install_parameter” is
70 absent, occurrences of "__PARAM__" are removed. Note that "__PARAM__" cannot
71 be part of the hostname. It needs to occur after the first '/' in the URL.
75 <h2 id="reference">Reference</h2>
77 An extension can override one or more of the following properties in the
80 {{+partials.manifest_type
81 type:apis.extensions.manifestTypes.byName.ChromeSettingsOverrides /}}