尽管点击浏览器中打开的页面,但仍使面板保持不变
我想实现这个
- 将面板锚定到小部件
- 使其持久化
- 它只会在单击小部件时出现或消失
- ,或者可以通过单击其上的某个按钮使其消失 我想实现这一目标,因为我的插件完全驻留在面板中 这里是插件。
I want to achieve this
- Anchor a panel to a widget
- make it persist
- It will only appear or disappear when widget is clicked
- or It may be made to disappear by clicking some button on it
I want to achieve this because my addon is entirely residing in a panel
Here is the addon.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我对此进行了更多研究,我想对以下几件事表示歉意:
解决此问题的一种方法是直接从数据文件夹加载 html,将其传递到内容脚本中并将其注入到页面中。像这样的东西:
https://builder.addons.mozilla.org/addon/1043886/最新/
一些可用性指南:
Ok, I looked at this a bit more, and I'd like to apologize for a couple of things:
One way to approach this is to load your html directly from the data folder, pass it into the content script and inject it into the page. Something like this:
https://builder.addons.mozilla.org/addon/1043886/latest/
Some usability guidelines for this:
你的意思是“noautohide”面板属性?
看来您无法使用addon SDK访问Panel对象,因此您可以创建自己的XUL面板来设置noautohide=true。
You mean "noautohide" panel property?
It seems you cannot access to Panel object using the addon SDK, so you can create your own XUL Panel to set noautohide=true.