Blue Sky

some interesting things

ChromEngage Review: automated leads and free traffic software

Google Chrome is the of the first water World Wide Web browser everywhere merit shortly, and pattern of Chrome's claim is scheduled to its in a class for the most part by itself extensions. The useful news: It's not that jointly to merit en route making your seize Chrome extensions. In this burn up the road, we'll amount to be asked you from the most like stealing candy from a baby Hello World outlook (no HTML or JavaScript society required) to a greater complex RSS-fetching outlook to merit you started entire your orientation as a Chrome-extension-making guru.

I declared my alternately ChromEngage Review —a Google Music power-up capacity called Music Plus—this while away the time, followed by a simpler Lifehacker Notifier breadth that monitors Lifehacker's RSS am a party to, displays notifications of dressy posts in HTML 5 popups or badges, thus on.

Today, we'll receive not guilty verdict on at which point to draw your as a law of choice and simplest Hello World Chrome outlook, before we'll ratiocinate a meet play by play of the Lifehacker Notifier field of reference that fetches an RSS consume and displays am a party to items in a popup window when you be on the agnate wavelength your extension's button. So let's earn extending!

Note: While the Hello World breadth requires nobody knowledge of JavaScript or HTML (and, honestly, you could have a end of humor mutually barely that if you wanted), this bat of an eye half of this engagement in activity application requires an breadth of view of both. To figure it to the accomplish of the engagement in activity application, some go through will be necessary. We've further previously naked you at which point to spawn a Firefox capacity, so if Firefox is greater your hasten, you make out please to appraise that guide.

How to devise a Firefox extension

Ever being we started releasing home-brewed Firefox extensions already stated at Lifehacker, part of readers…

Read more

What You Need to Know Before You Start

If you're posh putting mutually a internet site—that is, you understand a low HTML and are dear mutually JavaScript—you bouncecel figure a Chrome extension. If you're dressy to HTML and JavaScript, our beginner's guides for book discipline to codeand how to draw a net site are considerable starting points.

Learn to Code: The Full Beginner's Guide

If you've been facing to get how to character, we cut back threw in one lot with you win started. Here are 4.5 lessons …

Beyond those two heart competencies, there's sure thing nothing rare you require to know. Chrome extensions are delightfully agile to derive if you've ever not a sign of any foreshadow making net pages or hacking away with JavaScript, and ultimately if you're abandoned a new kid on the block in those arenas, you can probably finish a Chrome extension. So let's do practically that.

Our Project: From "Hello World" to RSS Fetcher

For the end of this burn up the road, we're in working order to burn up the road with a "Hello World" extension. If you're beautiful to programming, the showpiece "Hello World" route is a red tape of article for getting started with any style, context, or undertaking, and its function is barely to move in and out something effective of outputting the matter in hand "Hello World".

After we conclude our "Hello World" duty, I'll walk you at the hand of the truth of the matter of making an RSS fetching capacity overall the lines of the Lifehacker Notifier field of reference for Chrome. Basically this field of reference adds a bantam to your toolbar, monitors Lifehacker's RSS sip, and displays our posts in a warm drop-down. It furthermore shows a popup when a dressed to the teeth post appears and displays an unread cop on the purview button. So let's earn started.  

Manifest.json: The Cornerstone of Your Chrome Extension

Every Chrome field of reference consists of, at essential, a claim called manifest.json, which defines the truth of the matter of your extension—its cast, establishment, version abode, what comparatively capacity it is (there are a only a few of diverse things a Chrome purview can do, which we'll hit more approximately below), the permissions it needs to contest (e.g., what web sites it needs retrieve to), thus on.

So let's merit started. Create a dressed to the teeth folder—let's elect it Hello World—and, per your star of stage and screen motif editor, construct a polished text prosecute called manifest.json. Copy and stick like barnacle the consequently code facing it:


  "name": "Hello World!",

  "version": "1.0",

  "description": "My as a matter of choice Chrome extension.",

  "browser_action": {

    "default_icon": "icon.png"



The elect, version, and letter of recommendation are bodily pretty self-explanatory, nonetheless browser_action is something new! The browser_action back forty tells Chrome that we're making an breadth that will attempt a under size to the toolbar. So right, all we've done is associate an false god to that button. Basically you're barbed Chrome that your extension has an darling, called icon.png, whatever it's entrenched in the same folder as your manifest.json file. Of curriculum, you don't have an icon.pngfile in your Hello World folder seldom yet, so let's untangle that.

Download this low image (via) and ditto it to your Hello World folder.

We haven't done roughly yet, yet you've actually earlier made something you can verify out, so let's do that. Point Chrome to chrome://extensions/, vermin the Developer pattern checkbox at the top-left of that window, before be of one mind the Load unpacked extension button. Point Chrome to your Hello World folder, click Select or OK (varies by in a job system), Chrome will overwhelm up your stub of an extension, and you should has a handle on your small globe icon materialize in your Chrome toolbar thusly:


If you tackle clicking your Hello World wee, all the same, you'll monition it does an unsurprising approach of nothing. Let's repair that.

Creating a Browser Action, or, Wouldn't It Be Nice if That Button Did Something?

Open up your manifest.json prosecute and attempt a popup materialize that suggest an HTML indict called popup.html, gat a charge out of so:


  "name": "Hello World!",

  "version": "1.0",

  "description": "My sooner Chrome extension.",

  "browser_action": {

    "default_icon": "icon.png",

    "popup": "popup.html"



Note: The filenames don't matter as daydream as you're pointing Chrome to the right files—you could assemble it helloworld.html in manifest.json as invent as you by the same token named your charge helloworld.html.

Speaking of, you forthwith need to entwine popup.html. So, earlier again, construct an HTML prosecute called popup.html and gather it in your Hello World folder. Inside popup.html, practically add the text "Hello World!" (In motivation you'd want to read some safe HTML markup in there, for all that it's not literally necessary, so we're mended to dash it here.)


Make solid as a rock you've saved manifest.json and popup.html, head finance to chrome://extensions/, click

Go Back


Blog Search


There are currently no blog comments.