Chrome Extensions Development Series VII: Override page

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.