[英]How to use a "dynamic" icon for firefox addon
im currently trying to implement a dynamic addon for my firefox addon.我目前正在尝试为我的 firefox 插件实现动态插件。 I want to add a counter as is used by honey oder AddBlock AddBlock Icon
我想添加一个由 Honey oder AddBlock AddBlock Icon使用的计数器
I cant find any explanation on the MDN developer guidelines on how to achive this though... I know that I can set a new icon using我在 MDN 开发人员指南中找不到任何关于如何实现这一点的解释......我知道我可以使用
browser.browserAction.setIcon({path: "/path/to/image"});
but that would require me to create an image for every instance and rescale the image accordingly.但这需要我为每个实例创建一个图像并相应地重新缩放图像。
Presumably, you need to add a script for that.据推测,您需要为此添加一个脚本。 This is rough example and resource Changing website favicon dynamically
这是粗略的示例和资源动态更改网站图标
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.