firefox-addon
#firefox- addon 1
1: firefox-addon 2
Examples 2
2
2
2
WebExtensions 2
2
Firefox 3
3
WebExtensions 4
FirefoxSDK 4
/ 4
// XUL 4
4
5
5
5
5
6 You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: firefox-addon
It is an unofficial and free firefox-addon ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official firefox-addon.
The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.
Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to [email protected]
https://riptutorial.com/zh-TW/home 1 1: firefox-addon
Examples
FirefoxExtensions“”Firefox。
FirefoxFirefox。
• 。 • Firefox • Firefox • Firefox
FirefoxJavaScriptJavaScript API。
WebExtensions
Firefox。 MozillaWebExtensionsFirefoxWebExtensionsFirefox 5720171114 。
Firefox
• WebExtensions WebExtensionsFirefox。manifest.json。APIGoogle ChromeAPI。Javascript HTMLCSS。MozillaAPIFirefoxAPI。Firefox Developer EditionFirefox NightlyWebExtension 。Firefox。MDN“”。
WebExtensionsAPI。。
• SDK [ ;package.jsonjpm init 。require() APIFirefox。JavascriptHTMLCSS。jpm runjpm xpi .xpiAMO / Mozilla。SDK。
require("chrome") XUL XPCOMXBL MozillaSDK。
Add-on SDK。SDKAdd-on SDK。
• Bootstrapped [ ; ]“”Mozilla/。restartless。“restartless”Add-on SDKWebExtension。“”。
JavascriptHTMLCSS。XULFirefox。
bootstrap.jsJavaScriptstartup() shutdown() install()uninstall() uninstall() 。
install.rdf。chrome.manifestMozillaFirefox。
https://riptutorial.com/zh-TW/home 2 overlay / XUL / Legacybootstrapped。SDKSDKJavaScriptAPI。
Mozilla “XUL XPCOMXBL”。Add-on SDKWebExtension。。。Add-on SDK require("chrome") XULXPCOMXBLSDKSDK。
• Overlay / XUL / Legacy [ ;install.rdfchrome.manifest。chrome.manifest。install.rdf。Firefox 。。
JavascriptXULHTMLCSS。XPCOMXBL 。
Overlay / XUL / Legacy。 Firefox
Firefox。Firefox
• [ ]Firefox。CSS。 “” 。 • AndroidFirefox 。Firefox。 • 。 • 。 • Firefox。 • 。
“”Makyen'sstackoverflow 。 Mozilla Developer NetworkMDNAdd-on 。 Makyenfirefox-addon“”。OndřejDoněk“for”。nus“”“”“”。。
Firefox。 。
1. about:debugging 2. “” 3. 4. 5. “” about:debugging“aaaaaaaaaaaaaaaaaa - demo add-on”about:addons
https://riptutorial.com/zh-TW/home 3 .xpi.xpi。 。Firefox。
Mozilla Firefox
WebExtensions
WebExtensions。.xpi。
FirefoxSDK
Firefox Add-on SDKjpm xpi.xpi。jpm runFirefox Add-on SDK。
Add-on SDKpackage.jsoninstall.rdfchrome.manifest。Add-on SDKBootstrap / RestartlessFirefox。 Firefox。jpm xpi.xpi。jpm runFirefox。
/
Bootstrap / Restartless。.xpi。
// XUL
Legacy / Overlay / XUL。
48FirefoxBeta Mozilla 。AMO。Firefox。43FirefoxMozilla。 Mozilla。 about:config xpinstall.signatures.requiredfalse FirefoxFirefox Developer Edition Firefox Nightly
https://riptutorial.com/zh-TW/home 4 Unbranded BetaUnbranded Release 。ReleaseBeta Firefox43-48。48FirefoxBeta。
。Firefox。Temporary Add-ons。Firefox。。Firefox。Firefox。
1. 2. Firefox。 3. jpm run SDK Firefox。 4. web-ext run WebExtensions Firefox。。
.xpiFirefox。AMO。 。
.xpiFirefox.xpi。WindowsWindows。。FirefoxFirefox/。.xpi
/ Firefox
48FirefoxBeta Mozilla 。AMO。Firefox。43FirefoxMozilla。 Mozilla。 about:config xpinstall.signatures.requiredfalse FirefoxFirefox Developer Edition Firefox Nightly Unbranded BetaUnbranded Release 。ReleaseBeta Firefox43-48。48FirefoxBeta。
Firefox。 Stack OverflowFirefox。
。Firefox。Temporary Add-ons。Firefox。。Firefox。Firefox。
WebExtensionsFirefox Add-on SDKRestartless / Bootstrapabout:debugging 。Firefox。.xpi。
。 firefox-addon https://riptutorial.com/zh-TW/firefox-addon/topic/3235/firefox-addon
https://riptutorial.com/zh-TW/home 5 S. Contributors No
1 firefox-addon Community, Makyen, Martin Zhai, nus, Ondřej Doněk, Priya
https://riptutorial.com/zh-TW/home 6