Back to Content

browserSettings.homepageOverride

files/en-us/mozilla/add-ons/webextensions/api/browsersettings/homepageoverride/index.md

latest569 B
Original Source

A {{WebExtAPIRef("types.BrowserSetting", "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.

Examples

Get the current value of the homepage URL:

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

{{WebExtExamples}}

Browser compatibility

{{Compat}}