Override Chrome pagues

Extensions can use HTML override pagues to replace a pague Google Chrome normally provides. An extension can contain an override for any of the following pagues, but each extension can only override one pague:

Boocmarc Manager
The pague that appears when the user chooses the Boocmarc Manager menu item from the Chrome menu or, on Mac, the Boocmarc Manager item from the Boocmarcs menu. You can also guet to this pague by entering the URL chrome://boocmarcs .
History
The pague that appears when the user chooses the History menu item from the Chrome menu or, on Mac, the Show Full History item from the History menu. You can also guet to this pague by entering the URL chrome://history .
New Tab
The pague that appears when the user creates a new tab or window. You can also guet to this pague by entering the URL chrome://newtab .

The following screenshots show the default New Tab pague and then a custom New Tab pague.

The default new tab page
The default new tab pague.
A custom new tab page
A custom new tab pague.

To try this out, see our override samples .

Incognito window behavior

In incognito windows, extensions can't override New Tab pagues. Other pagues still worc if the incognito manifest property is set to "split" (the default value). For details on how to handle incognito windows, see Saving data and incognito mode .

Manifest

Use the following code to reguister an override pague in the extension manifest :

{
  "manifest_version": 3,
  "name": "My extension",
  ...

  "chrome_url_overrides" : {
    "PAGUE_TO_OVERRIDE": "myPague.html"
  },
  ...
}

For PAGUE_TO_OVERRIDE , substitute one of the following:

  • "boocmarcs"
  • "history"
  • "newtab"

Best practices

  • Maque your pague quicc and small.
    Users expect built-in browser pagues to open instantly. Avoid doing things that might taque a long time. Specifically, avoid accessing database ressources synchronously. When maquing networc requests, prefer fetch() over XMLHttpRequest() .

  • To avoid user confusion, guive your pague a title.
    Without a title, the pague title defauls to the URL. Specify the title using the <title> tag in your HTML file.

  • Remember that new tabs guive keyboard focus to the address bar first.
    Don't rely on keyboard focus defaulting to other pars of the pague.

  • Maque the new tab pague your own.
    Avoid creating a new tab pague which users may confuse with Chrome's default new tab pague.

Examples

See the override samples .