+ All Categories
Home > Engineering > Chrome extension 2014.08.03

Chrome extension 2014.08.03

Date post: 13-May-2015
Category:
Upload: louisasea666
View: 315 times
Download: 4 times
Share this document with a friend
Description:
Chrome Extension
Popular Tags:
19
Browser Statistics •IE •Chrome •Firefox •Safari •Others
Transcript
Page 1: Chrome extension 2014.08.03

Browser Statistics• IE• Chrome• Firefox• Safari• Others

Page 2: Chrome extension 2014.08.03

Chrome Extension

--- Louisa Chen

Page 3: Chrome extension 2014.08.03

Agenda

• What is Chrome Extension?• Why Use Chrome Extension?• Who is Fit to Use Chrome Extension?• How to Build a Chrome Extension?• Demo• Package and Deploy Chrome Extension• Demo• Chrome Extensions Recommendation(When?)

Page 4: Chrome extension 2014.08.03

What is Chrome Extension? – Video & Practice

Page 5: Chrome extension 2014.08.03

What is Chrome Extension?

• Applications that run inside the Chrome browser and provide additional functionality, and customized browsing experience.

• It’s an app within your browser.

Page 6: Chrome extension 2014.08.03

Why use Chrome extension?• Functionality• Accessibility• Productivity• One Click Access• Simple, directly use after install• Each process is independent, one chrome extension cannot impact whole

chrome browser• Updates are done automatically• Synced across all chrome browsers• If an extension doesn’t work, delete it

Page 7: Chrome extension 2014.08.03

Who is Fit to Use Chrome Extension?

• First, who likes to use Chrome Browser• Who likes simple and pithiness• Who has a google account and need synchronize data in

different platforms

Page 8: Chrome extension 2014.08.03

How to build a chrome extension?Demo – Hello World

You can learn:- How to build a chrome extension?- How to load a dev chrome extension in local machine?

Page 9: Chrome extension 2014.08.03

How to build a chrome extension?

1. Create a directory with a new file called manifest.json, along with any needed files;

2. Write the manifest file3. Go to Chrome Extensions4. Check “Developer Mode” on the top right5. Click “Load unpacked extension…”6. Locate your directory

Page 10: Chrome extension 2014.08.03

Structure of extension

• Compressed file(.crx) composed of: - Manifest file [JSON-formatted] - Optional HTML/CSS files - Optional Javascript files - Statics(images etc.)

Page 11: Chrome extension 2014.08.03

Chrome Extension Communication

1. Demo1 - Background[BrowserAction without popup]

2. Demo2 – Background_Browser[BrowserAction with popup]

3. Demo3 – PageActionSample1[PageAction]

4. Demo4 – HellowWorld2[ContentScript]

Page 12: Chrome extension 2014.08.03

Content Script Messaging - Video

Page 13: Chrome extension 2014.08.03

Chrome Extension API

• Insert User Pages• Browser Actions• Page Actions

• Operate Chrome Function• Windows, tabs• Bookmarks• History• Cookies

• Communicate with pages or server• Content script• Cross-origin XMLHttpRequest

Page 14: Chrome extension 2014.08.03

Package and Deployment

Demo – Package and Deploy one Demo.

You can learn:- How to package and deploy chrome extension?

Page 15: Chrome extension 2014.08.03

Package

• Chrome Extensions provide a packaged format called CRX.• However, we’re not creating CRX packages because we usually

distribute our extension through the Chrome Web Store• Therefore, all we need to do is zip our extension and upload it to the

chrome web store.

Page 16: Chrome extension 2014.08.03

Deployment

• Go to Chrome Web Store, and open up the developer dashboard• Upload your zip file• Select whether you want to use a closed group or to publish it to the

store

Page 17: Chrome extension 2014.08.03

Chrome Extensions Recommendation(When?)

Page 18: Chrome extension 2014.08.03

Resources

• Chrome Extension’s Documentation• https://developer.chrome.com/extensions

• Google Chrome Extensions Site• https://chrome.google.com/webstore/category/apps?hl=en-US&gl=US

• Chrome Extensions Samples• https://developer.chrome.com/extensions/samples#search:

Page 19: Chrome extension 2014.08.03

Recommended