1 / 7

How to build an extension for FireFOX /Chrome?

VIDA – Henry Nguyen. How to build an extension for FireFOX /Chrome?. How does it work?. Run at background of Website (main window and all IFrames ) Can hook at: Document Start Document Ready Document End Get resources file: require(' sdk /self'). data.url Browser

brooke
Download Presentation

How to build an extension for FireFOX /Chrome?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VIDA – Henry Nguyen How to build an extension for FireFOX/Chrome?

  2. How does it work? • Run at background of • Website (main window and all IFrames) • Can hook at: • Document Start • Document Ready • Document End • Get resources file: require('sdk/self').data.url • Browser • When we give an our action and to do some thing • Ex: LightSpot (Take Screenshoot)

  3. Build an extension for FireFox • Using SDK builder: • Download to local and use Command Line • Required Python enviroment • Ex command: “cfx test” or “cfxxpi” • Deploy: “cfx run” or install from file .xpi • Using web builder addon: • Build online • Required addon-builder-helper : • Deploy:

  4. Build an extension for Chrome • Understand structure of manifest.json • Get resources file: chrome.extension.getURL • Using browser build an addon: • Using command line: chrome.exe --pack-extension=c:\myext --pack-extension-key=c:\myext.pem

  5. DEMO • Build FireFox’s Extension • Build Google Chorme’sExtension

  6. A&Q

  7. Thanks

More Related