Tuesday, May 15, 2012

Digital Inspiration Technology Blog: How to View the Source Code of a Chrome Extension

Digital Inspiration Technology Blog
Digital Inspiration is an award-winning how-to tech blog around all things related to computer software, web applications, mobile and personal productivity.
How to View the Source Code of a Chrome Extension
May 15th 2012, 11:31

There are two main reasons why you may want to read the source code of any Google Chrome extension (including Web Apps and Chrome Themes):

  1. If the Chrome extension has been created by an unknown developer,  you want to ensure that it does what the description says and nothing more. You would not like to download a Chrome extension on your machine that tracks your search logs or browsing history.
  2. You are learning how to write a Chrome extension (or theme) and are curious to know how some of the good extensions have been written. The licenses of some Chrome extensions may even allow code reuse with attribution.

Google Chrome extensions and web apps are distributed as CRX files but they are standard ZIP files that you can easily extract using WinZip or any of the other unzip utilities. For instance, here's the Chrome App for Angry birds – right-click and save this file as .zip to view all the HTML, CSS, JS and image files that make this popular extension.

If you would like to see the source code of a Chrome Extension, the easiest option would be that you open the local Chrome folder on your computer, switch to the Extensions directory and there you'll find a separate folder for each of the installed Chrome extensions and apps.

The path of Chrome's extension folder in Windows is:

C:\Users\<user>\AppData\Local\Google\Chrome\User Data\<Name>\Extensions

chrome extensions

Download Chrome Extensions with a Bookmarklet

Alternatively, if you would like to view the source of a Chrome extension but without installing it on your computer, here's a bookmarklet that will help help.

Get CRX

Drag the bookmarklet link to your bookmarks toolbar and while you are on the extensions page of Google Chrome, just click the bookmarklet to see the direct download link of the .crx file. You should right-click and save the .crx file with a .zip extension (or use any download manager) else the file will open in Chrome.

The same trick will also help you extract Google Chrome themes since they are also packaged using the same CRX format.

Tweet this Share on Facebook


Digital Inspiration @labnolThis story, How to View the Source Code of a Chrome Extension, was originally published at Digital Inspiration on 15/05/2012 under Google Chrome, Software.

Related posts:

  1. How to Force Internet Explorer to Always Use Google Chrome
  2. Download Updated Google Notebook Extension for Firefox 3
  3. Google Launches an AdSense Toolbar for Chrome
  4. Open Websites in Google Chrome from Firefox
  5. Confirm Before Closing Multiple Tabs in Chrome

Media files:
chrome_extensions1-50x50.png (image/png)
You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments:

Post a Comment