W3cubDocs

/Web Extensions

browserSettings.homepageOverride

A BrowserSetting object that can be used to get a string representing the URL currently set as the browser's homepage.

Note that this is a read-only setting. To change the homepage, see chrome_settings_overrides.

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
homepageOverride
No
No
57
?
No
No
?
?
57
?
?
?

Examples

Get the current value of the homepage URL:

browser.browserSettings.homepageOverride.get({}).then(result => {
  console.log(result.value);
});

© 2005–2021 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/API/browserSettings/homepageOverride