You are here: Home > Google Chrome Extensions & Plug-ins

Google Chrome extension tutorial for developers

April 15, 2009 05:57 PDT

Posted by Andrew.

The Chromium extension system is in active development. Google published a Chrome extension HOWTO tutorial for developers. However, it is not yet ready for use by the general public. The majority of the APIs are not implemented yet, and there is no UI, no autoupdate system, etc.

There is a Getting Started tutorial for Chromium developers, it shows how to create a simple extension that shows Hello, World! in Chrome. First of all, you will need to be using either the developer channel of Chromium or else a recent trunk build.

Matt Cutts also posted an article How to Write a Chrome Extension in Three Easy Steps in his blog:

How to Write a Chrome Extension in Three Easy Steps

...

Extensions currently have very Greasemonkey-like functionality: you identify which web pages should be modified, plus JavaScript to be added to those pages. By default, the extension's JavaScript runs after the page loads, but you can specify that the extension's JavaScript should run before the page loads. Right now, you can only load one JS file, but that could change in the future. You also can't currently load Cascading Style Sheets (CSS), but that might also change.

The Chrome extension manifest, which has metadata about your extension such as name, version, etc., looks much simpler to me than how Firefox wants extensions to be packaged. That's a big plus in my book, because you spend most of your time writing code and not worrying about packaging up your plug-in. On the down side, I didn’t see any support for internationalization, which is one of the benefits of Firefox's more comprehensive way of packaging up plugins. Another limitation of the current Chrome extension spec is that you can’t do much other than modify pages via JavaScript. And I didn’t see a way to introduce new widgets into the actual “chrome” of the Chrome browser.

...

From: Matt Cutts, mattcutts.com

Other resource about Google Chrome extension



#1  posted on January 13, 2011 21:14 PST
niceeee

Leave your comment
If you want to leave your comment on this article, simply fill out the next form:
Name: * Requirement
E-mail: Optional (won't be published)
Website / Blog: Optional
Are you a human? For anti spammer, please calculate following expression:
6 x 5 + 4 = * Requirement
Comment:
* Requirement
You can use these tags:
[b] Text [/b]: Bold text
[quote] Text [/quote]: Quote text