explain
You can customize the browser’s three pages, namely, new tab, history page and bookmark management page.
demand
We need to show my blog home page whenever a user opens a new tab
design sketch
Main steps
1. on the manifest JSON to declare the page to be rewritten
Rewrite new tab
"chrome_url_overrides":{
"newtab":"new.html"
}
Rewrite history page
"chrome_url_overrides":{
"history":"new.html"
}
Rewrite bookmark management page
"chrome_url_overrides":{
"bookmarks":"new.html"
}
2. edit the custom page new html
<html>
<head>
<meta charset="utf-8"/>
<title>roshan's blog </title>
</head>
<body>
<h1>Roshan's blog</h1>
<h2><a href="https://www.toolchest.cn">https://www.toolchest.cn</a></h2>
<h2>Video explanation, text notes, source code sharing, and truly learned tutorials</h2>
</body>
</html>
directory structure