Type | Object |
---|---|
Mandatory | No |
Manifest version | 2 or higher |
Example |
|
Use the chrome_settings_overrides
key to override the browser's home page and add a new search engine.
Type | Object |
---|---|
Mandatory | No |
Manifest version | 2 or higher |
Example |
|
Use the chrome_settings_overrides
key to override the browser's home page and add a new search engine.
The chrome_settings_overrides
key is an object that may have the following properties:
Name | Type | Description |
---|---|---|
homepage |
String |
Defines the page to be used as the browser's homepage. The replacement is given as a URL. The URL may:
If two or more extensions both set this value, then the setting from the most recently installed one will take precedence. To override new tabs, use "chrome_url_overrides" instead. This is a localizable property. |
search_provider |
Object |
Defines a search provider to add to the browser. The search provider has a name and a primary search URL. Alternative URLs may be provided, including URLs for more specialized searches like image search. In the URL you supply, use " The search provider will be presented to the user alongside the built-in providers. If you include the This is an object with the properties listed below. All string properties are localizable.
|
This example shows how to set a search provider.
"chrome_settings_overrides": {
"search_provider": {
"name": "Discogs",
"search_url": "https://www.discogs.com/search/?q={searchTerms}",
"keyword": "disc",
"favicon_url": "https://www.discogs.com/favicon.ico"
}
}
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
chrome_settings_overrides |
Yes | 79 | 55 | ? | No | No | ? | ? | No | ? | No | ? |
homepage |
Yes | 79 | 55 | ? | No | No | ? | ? | No | ? | No | ? |
search_provider |
Yes | 79 | 55 | ? | No | No | ? | ? | No | ? | No | ? |
startup_pages |
Yes | 79 | No | ? | No | No | ? | ? | No | ? | No | ? |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/chrome_settings_overrides