How to create firefox3 sidebar?

試著忘記壹切 提交于 2019-11-30 19:05:23

问题


Hi I want to create sidebar in Firefox 3 but have no clue how to do this.

I find tutorial on MDC (https://developer.mozilla.org/en/Creating_a_Firefox_sidebar) but after installation extension do not work with "not compatible with Firefox 3.0.3" error.

Does anybody have any tip or link to some resource about how to make sidebar?


回答1:


Well, a Firefox extension, be it a sidebar, toolbar or whatever other type of extension is basically a mix of XUL and Javascript, all packaged nice and tidy into an installer package called an XPI.

For an excelent XUL tutorial see http://xulplanet.mozdev.org/tutorials/xultu/. For information about building extensions and the package format see https://developer.mozilla.org/en/Building_an_Extension.

For a sidebar you basically have to override the browser's sidebar area by using an overlay. For good overlay information check out MDC and the excerpt at http://www.oreillynet.com/pub/a/mozilla/excerpt/FirefoxHacks_chap01/.

All you need except the links above is knowledge of XML, some Javascript and a creative mind.

To fix the problem you faced above, you have to specify the correct version of Firefox in the install.rdf file. For Firefox 3 set maxVersion to:

        <em:maxVersion>3.*</em:maxVersion>


来源:https://stackoverflow.com/questions/264932/how-to-create-firefox3-sidebar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!