是否有 API 可以修改 Chrome 扩展或 WebExtensions 中的常规浏览器 UI?例如,我想修改选项卡栏,以便它可以显示多行选项卡,而无需创建位于地址栏下方的工具栏。或者简单地向导航栏等添加一些样式。
我似乎找不到一个 API 可以让你做类似的事情。
不,Chrome 扩展程序或 WebExtensions 中没有任何内容允许您将浏览器 UI 修改到您所描述的范围。此类附加组件修改浏览器 UI 的能力是显著地少于 Firefox 附加组件开发人员(和用户)所习惯的数量。
在浏览器 UI 中,您可以更改:
- Add one, and only one, button to the Browser UI, which can be either an action or open a popup. On Firefox, the button can alternately open a sidebar. The properties of this button can be changed dynamically (e.g. to show status or that your add-on is in different states) and can have a different state per tab. Any popup that's opened is an HTML page in which you can implement you own UI. However, popups are not persistent and will be closed when something else within that window gains focus. This one button is added though an entry in your manifest.json (Chrome)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)