Extension Options Page, Built-in Page Overrides, and Settings
How to build extension options pages, replace built-in browser pages, and declare settings overrides in the manifest, per Chrome extension docs.
This page summarises Chrome extension documentation on three related ways extensions expose configuration and change browser behaviour: an options page for user preferences, chrome_url_overrides to replace built-in pages, and chrome_settings_overrides for homepage, search, and startup. It is aimed at developers who need to wire up settings UI, pick full-page versus embedded options, or understand limits such as one override page per extension and domain verification for settings.
Options page: user customization without changing the browser shell
Section titled “Options page: user customization without changing the browser shell”An options page is a simple HTML surface where users enable features and choose behaviour that matters to them. Chrome describes the role this way:
Just as extensions allow users to customize the Chrome browser, the options page enables customization of the extension. Options can be used to enable features and allow users to choose what functionality is relevant to their needs.
— Google, Architecture overview
The same idea appears in Give users options: users open it from a direct link, by right-clicking the toolbar icon and choosing Options, or via chrome://extensions → Details → the options link (Locating the options page).
How do I register an options page in the manifest?
Section titled “How do I register an options page in the manifest?”There are two types of options page—full page and embedded—controlled entirely by manifest fields (Declare options page behavior).
| Type | Manifest | Where it opens |
|---|---|---|
| Full page | "options_page": "options.html" |
New tab |
| Embedded | "options_ui": { "page": "options.html", "open_in_tab": false } |
Box inside chrome://extensions |
For a full-page options UI:
{ "name": "My extension", "options_page": "options.html"}For embedded options, set open_in_tab to false so the page is shown on the extensions management page rather than in a new tab (Embedded options). The page string is the path to HTML relative to the extension root; open_in_tab when true opens the same HTML in a tab instead of embedding.
Legacy Manifest V2 tutorials use the same patterns (Getting started, Give users options (MV2)); current store policy expects Manifest V3—see the migration notes in those MV2 articles.
How should options read and save preferences?
Section titled “How should options read and save preferences?”A typical flow is HTML controls plus a script that writes to browser.storage.sync (or chrome.storage.sync) and restores on DOMContentLoaded (Write the options page). You must declare the storage permission in manifest.json. The Getting started walkthrough stores a colour in chrome.storage.sync so every extension script can read one shared value.
Older FAQ text also mentions localStorage or sending options to a server (Frequently asked questions); the documented modern pattern for cross-device prefs is the Storage API with the storage permission.
Feature-specific APIs can be driven from the same UI—for example browser.mimeHandler.getMimeHandlerOptions / setMimeHandlerOptions let users disable PDF handling on the options page without uninstalling; while disabled, documents of that MIME type are no longer routed to the extension.
How do I open the options page from a popup or background script?
Section titled “How do I open the options page from a popup or background script?”Call browser.runtime.openOptionsPage() (or chrome.runtime.openOptionsPage()). If the API is missing, fall back to window.open(browser.runtime.getURL('options.html')) (Link to the options page).
Embedded options: Tabs API and sizing
Section titled “Embedded options: Tabs API and sizing”Embedded options are not hosted in a tab, which changes behaviour (Tabs API, MV2 detail):
tabs.querywill not find a tab for the options URL.tabs.onCreated/tabs.onUpdateddo not fire for embedded options lifecycle.tabs.connectandtabs.sendMessagecannot target the embedded page—useruntime.connectandruntime.sendMessageif the options UI must coordinate with other extension parts.
Content should size itself from layout; if the embed box mis-measures dynamic layouts, set fixed minimum dimensions on the options HTML (Sizing).
Logs for extension pages shown as tabs (including full-page options and override pages) appear in the page console and on the extensions management page (Debugging extensions).
chrome_url_overrides: replace New Tab, History, or Bookmarks
Section titled “chrome_url_overrides: replace New Tab, History, or Bookmarks”Override pages substitute an extension HTML file (plus CSS and JS) for a built-in Chrome page (Override Chrome pages, Overriding Chrome pages (MV2)).
Allowed targets:
| Key | Built-in page |
|---|---|
newtab |
New tab / new window tab |
history |
History (chrome://history) |
bookmarks |
Bookmark Manager (chrome://bookmarks) |
Register exactly one override per extension—for example you cannot override both History and Bookmarks (Design the user interface, Overriding Chrome pages).
{ "manifest_version": 3, "name": "My extension", "chrome_url_overrides": { "newtab": "myPage.html" }}Replace PAGE_TO_OVERRIDE with bookmarks, history, or newtab (Manifest). Override HTML may use external scripts (e.g. <script src="logic.js"></script>) rather than inline script, consistent with extension page rules in Design the user interface.
Limits and best practices for override pages
Section titled “Limits and best practices for override pages”- Incognito: New Tab overrides do not apply in incognito windows. Other overrides work in incognito when
"incognito": "spanning"(the default) (Overriding Chrome pages). - Performance: Keep the page quick and small; avoid long-running work and synchronous database access; prefer
fetch()overXMLHttpRequest()(Best practices). - UX: Set
<title>so users do not see a raw URL; remember the address bar gets focus first on new tabs; build a distinct design rather than imitating the default New Tab (Tips).
Samples are linked from Override Chrome pages and User interface components.
Automated tests can navigate to extension pages at chrome-extension://<id>/index.html using normal automation navigation (End-to-end testing).
chrome_settings_overrides: homepage, search provider, startup
Section titled “chrome_settings_overrides: homepage, search provider, startup”Settings overrides let an extension change selected Chrome settings via manifest entries (Overriding Chrome settings, MV2 reference). The Develop overview groups this with HTML override pages as ways extensions alter Chrome’s defaults.
Optional manifest properties:
| Property | Effect |
|---|---|
homepage |
New homepage URL |
search_provider |
Search engine definition (search_url, is_default, optional suggest/image URLs, etc.) |
startup_pages |
Array of length one with startup URL |
Domains used in these URLs must be verified by the same developer account that publishes the extension—via Google Search Console (older MV2 text refers to Webmaster Tools). Verified ownership of e.g. https://example.com allows subdomains and paths under that domain.
Values can be localized with chrome.i18n. External extensions may substitute __PARAM__ in URLs from a registry install_parameter next to update_url (Customizing values).
Notifications, policy, and existing user settings
Section titled “Notifications, policy, and existing user settings”The Extensions quality guidelines FAQ states that when an extension changes settings through the Settings Override API, users are notified before install, on first encounter, and via an indicator beside each changed setting on Chrome’s settings page, with the option to reverse changes by disabling the extension.
Existing home page, search provider, and startup settings are not retroactively changed merely because the API exists; only extensions can change them programmatically, and only through this API (FAQ).
From Chrome 107 onward, combining chrome_settings_overrides with extra permissions or capabilities may trigger a confirmation dialog when Chrome suspects a single purpose policy violation; extensions that only change a single setting without additional permissions do not (Homepage, search provider, and startup pages).
Common mistakes
Section titled “Common mistakes”- Declaring both heavy
permissionsand settings overrides without expecting the Chrome 107+ confirmation flow. - Using embedded options code that calls
tabs.*APIs—switch to runtime messaging. - Registering more than one
chrome_url_overridesentry across different built-in pages in a single extension. - Expecting New Tab overrides in incognito—they are intentionally excluded.
- Omitting
storagewhen the options page usesstorage.sync. - Shipping override pages without a
<title>or with slow synchronous loads on a cold new tab.
Extension pages and standard web pages both can open URLs; extensions that need a specific window should use tabs.create rather than only window.open() (Using Chrome APIs).
How to check this on your site
Section titled “How to check this on your site”- Load the unpacked extension, open
chrome://extensions, and confirm Details shows the options link; open it and verify embedded versus full-tab behaviour matches youroptions_pageoroptions_uideclaration (Give users options). - Change a setting on the options page, reload the extension or related UI, and confirm values persist via
storage.sync(or your chosen storage) as in Write the options page. - For overrides, open
chrome://newtab,chrome://history, orchrome://bookmarksand confirm your HTML loads; test a normal and an incognito window for New Tab if relevant (Overriding Chrome pages). - For settings overrides, confirm Search Console domain verification for every URL in
chrome_settings_overridesunder the publisher account (Overriding Chrome settings), then install a test build and check Chrome settings indicators described in the quality guidelines FAQ. - You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact wording you are asking about, and we will correct or clarify it.