我正在开发一个修改 Newtab 的 Chrome 扩展程序。现在我面临着选项页面的问题。
我希望它在我的 newtab 的页脚中。示例:在我的 newtab 的页脚中,我想让用户决定他的 newtab 中的内容视图类型。
是否有可能或者我应该强制创建一个选项页面?
感谢@wOxxOm,我找到了解决方案。所以答案是:是的,这是可能的。您应该在 manifest.json 中添加以下代码行:
...
"options_page": "newtab.html#options",
"options_ui": {
"page": "newtab.html#options",
"chrome_style": false,
"open_in_tab": true
},
...
其中 #options 是您的选项所在的 div 的 ID。
希望可以帮助某人:)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句