The Chrome browser usually provides some default pages, such as the Tag Manager page Chrome://bookmarks, the Browsing history page chrome://history or the New tab page Chrome://newtab, and so on.
The override page in the Chrome extension, as the name implies, is a rewritten page that can be replaced by the above default page. However, a Chrome browser extension can only replace one default page. The default pages that the Chrome extension can replace are as follows:
- such as the Label Manager page Chrome://bookmarks
- Browsing history page Chrome://history
- New tab page Chrome://newtab (cannot be replaced in Incognito mode)
Registering the override page in the Manifest.json file is as follows:
{
...
"chrome_url_overrides": {
"pagetooverride": "mypage.html"
},
...
}
Where the value ofpagetooverride can be bookmarks, history, Newtab
Then you can edit the mypage.html page to replace it. Pages as short as possible, preferably with title.
Chrome Extensions Development Series VII: Override page