我为 Firefox 和 Chrome 构建了一个网络扩展插件。在 Chrome 中,地址栏是空的,这也是我想要 Firefox 的原因。
如果我点击“新标签”,地址栏上会设置以下 URL:moz-extension://5a4137a2-ede8-4f1d-838c-20069831ab38/index.html
.我可以将其更改为其他内容吗?一个空的地址栏会很棒。
这是我的 manifest.json
...
"chrome_url_overrides" : {
"newtab": "index.html"
},
"permissions": [
"activeTab"
],
...
最佳答案
有一个 bug in Firefox这并没有清除地址栏,但它从 Firefox 57 开始修复。
您可以通过设置 <title>
来自定义选项卡标题。新标签页 HTML 中的元素。来自 documentation对于扩展 manifest.json 文件:
It's very good practice to include a for the page, or the tab's title will be the "moz-extension://..." URL.
关于json - Firefox 网络扩展更改新标签插件的 url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44933236/