新标签页插件的 Firefox Web 扩展更改 url
Firefox web extension change url of new tab addon
我已经为 Firefox 和 Chrome 构建了一个网络扩展插件。在 Chrome 中,地址栏是空的,这就是我想要 Firefox 的原因。
如果我点击"new tab",下面的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 开始修复了。
您可以通过为扩展 manifest.json 文件设置 <title>
element in your new tab page's HTML. From documentation 来自定义选项卡标题:
It's very good practice to include a for the page, or the tab's title will be the "moz-extension://..." URL.
我已经为 Firefox 和 Chrome 构建了一个网络扩展插件。在 Chrome 中,地址栏是空的,这就是我想要 Firefox 的原因。
如果我点击"new tab",下面的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 开始修复了。
您可以通过为扩展 manifest.json 文件设置 <title>
element in your new tab page's HTML. From documentation 来自定义选项卡标题:
It's very good practice to include a for the page, or the tab's title will be the "moz-extension://..." URL.