阅读:3671回复:0
[转]看看FireFox扩展的安装文件
就直接看看代码吧,我直接在代码中进行注释,就不作过多的解释了。如果有什么错误,请指出来。如下
<?xml version="1.0"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <em:id>{B92FA029-455C-41b7-831A-43843485D3E2}</em:id> <!-- 本扩展的标识号 --> <em:name>Hello, FireFox!</em:name> <!-- 本扩展的名称 --> <em:version>0.1</em:version> <!-- 版本号 --> <em:description>Say hello to FIREFOX!</em:description> <!-- 说明本扩展的用途 --> <em:creator>Land Wen</em:creator> <!-- 作者 --> <em:homepageURL>[url]http://www.dotdee.com[/url]</em:homepageURL> <!-- 主页链接 --> <em:iconURL>chrome://hellofirefox/skin/hellofirefox.png</em:iconURL> <!-- 图标链接 --> <em:aboutURL>chrome://hellofirefox/content/about.xul</em:aboutURL> <!-- 关于链接 --> <em:updateURL>[url]http://www.dotdee.com/update.rdf[/url]</em:updateURL> <!-- 版本号 --> <em:file> <!-- 本扩展的文件描述 --> <Description about="urn:mozilla:extension:file:hellofirefox.jar"> <em:package>content/hellofirefox/</em:package> <em:skin>skin/classic/hellofirefox/</em:skin> </Description> </em:file> <em:targetApplication> <!-- 可以使用该扩展的目标程序描述 --> <Description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- 目标程序的标识号 --> <em:minVersion>0.7</em:minVersion> <!-- 适用的最小版本号 --> <em:maxVersion>1.5</em:maxVersion> <!-- 适用的最大版本号--> </Description> </em:targetApplication> </Description> </RDF> |
|
|