我们创建一个文件夹 暂时叫做 PoetryTab吧
在其中创建一个manifest.json 和 PoetryTab.html
内容如下:
manifest.json
{"manifest_version": 2,"name": "PoetryTab","version": "1.0","description": "PoetryTab:为你的浏览增加诗意","author": "Fizz","icons": {"16": "img/cadillac.png","48": "img/cadillac.png","128": "img/cadillac.png"},"chrome_url_overrides": {"newtab": "PoetryTab.html"}}
PoetryTab.html
<!DOCTYPE html><html><head> <meta charset="utf-8"/> <title>五行缺诗</title></head><body>五行缺诗</body></html>
如图 :
然后在 chrome中访问 chrome://extensions/
点击
选中我们的插件根目录
更改插件代码后 点击刷新按钮即可重新加载
新建一个标签后 效果如下