简体   繁体   English

firefox插件开发| 重写browser.xul

[英]firefox add-on develop | rewrite browser.xul

I want to develop a Firefox add-on that change the whole UI, something like write new chrome://browser/content/browser.xul file. 我想开发一个可更改整个UI的Firefox插件,类似于编写新的chrome://browser/content/browser.xul文件。

I'm js developer, have no experience with add-ons development I didn't find something like that at add-on sdk documentaion 我是js开发人员,没有附加组件开发经验,在附加sdk documentaion中找不到类似的东西

AFAIK, such functionality is available through XUL overlays in plain old non-bootstrapped Firefox add-ons (those, that need restart of web browsers to install). AFAIK,此类功能可通过普通的旧的非自举Firefox附件(需要重新启动Web浏览器进行安装)中的XUL叠加层获得。 If it is OK for you, you may just create such add-on. 如果可以,则可以创建此类加载项。 It is as easy as writing ordinary HTML (XML in fact). 这就像编写普通HTML(实际上是XML)一样容易。 Look for Chrome Registration and for XUL Overlays on MDN for details. 有关详细信息,请查找Chrome注册MDN上的XUL重叠式广告

If you are required to create bootstrapped (restartless) Firefox extension or you must use Addon SDK, then your only option will be to watch newly created browser windows and modify them manually. 如果需要创建引导(无重启)的Firefox扩展,或者必须使用Addon SDK,则唯一的选择是观看新创建的浏览器窗口并手动进行修改。 In that case you are not able to modify the source of chrome://browser/content/browser.xul file. 在这种情况下,您将无法修改chrome://browser/content/browser.xul文件的源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM