chrome_settings_overrides 编辑
Use the chrome_settings_overrides
key to override certain browser settings. Two settings are available:
"homepage"
, which enables you to override the browser's home page."search_provider"
, which enables you to add a new search engine.
"chrome_settings_overrides" : {
"homepage": "/wiki/"
}
"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"
}
}
Manifest key: chrome_settings_overrides | |
---|---|
Type | Object |
Mandatory | No |
Syntax
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.
|
Browser compatibility
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论