火狐扩展教程_Firefox扩展模板
火狐擴展教程
Creating a Firefox extension can be difficult if you don't know the files involved and how to structure your extension folder. Fear not -- I have created a very basic Firefox extension template file/folder structure for you to get your first plugin going.
如果您不知道所涉及的文件以及如何構造擴展文件夾,則創建Firefox擴展可能會很困難。 不用擔心-我為您創建了一個非常基本的Firefox擴展模板文件/文件夾結構,以使您的第一個插件正常運行。
Download ZIP 下載ZIP文件和文件夾結構 (File & Folder Structure)
MyExtension/
MyExtension /
- myExtension.xul - The XML that creates the layout of the extension. myExtension.xul-創建擴展布局的XML。
- Empty for this template.此模板為空 。
- myExtension.js - The JavaScript that manages the action of each extension object. myExtension.js-管理每個擴展對象的動作JavaScript。
- locale/ - contains language files. None included in this template. Assume English.
- locale / -包含語言文件。 沒有包含在此模板中。 假設英語。
- skin/ - contains images and CSS to control extension object layout. skin / -包含用于控制擴展對象布局的圖像和CSS。
- myExtension.css - a CSS file controling presentation, just like a website. myExtension.css-一個CSS文件控制演示文稿,就像一個網站一樣。
- logo.png - a sample image. All images go in this folder as well. logo.png-示例圖像。 所有圖像也都放在此文件夾中。
chrome.manifest - maps out the file/structure layout of the extension for Firefox.
chrome.manifest-映射Firefox擴展的文件/結構布局。
install.rdf - provides information about the extension.
install.rdf-提供有關擴展的信息。
update.rdf - gets pinged to check for extension updates.
update.rdf-被ping檢查擴展名更新。
Note that this structure isn't required but is a very commonly used structure. Also, make sure to check out my David Walsh Blog Toolbar post to see an example of my file contents.
請注意,此結構不是必需的,但它是非常常用的結構。 另外,請確保查看我的David Walsh博客工具欄帖子,以查看我的文件內容的示例。
Download ZIP 下載ZIPStay tuned for my post on creating the XPI file that packages the extension!
請繼續關注我創建打包擴展的XPI文件的帖子!
翻譯自: https://davidwalsh.name/firefox-extension-template
火狐擴展教程
總結
以上是生活随笔為你收集整理的火狐扩展教程_Firefox扩展模板的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [FJOI 2016]bzoj 4408
- 下一篇: 应用程序中的服务器错误 怎么解决办法,i