How to make a extension widget on the top right side of firefox?

后端 未结 1 849
故里飘歌
故里飘歌 2021-01-22 08:13

I port a Chrome extension to Firefox. Because the XUL-based API is quite different from Chrome API, so I use the new add-on SDK of firefox.

There is a interface called

相关标签:
1条回答
  • 2021-01-22 08:38

    Erik Vold has created a library that allows you to do this:

    https://github.com/erikvold/toolbarbutton-jplib/blob/master/lib/toolbarbutton.js

    While this code isn't included in the SDK libraries, it can be used to get the result you want with the current version of the SDK. You can see a quick example using Erik's library here:

    https://builder.addons.mozilla.org/addon/1031142/latest/

    0 讨论(0)
提交回复
热议问题