Chromium/Firefox extension to view the source code of other Chrome / Firefox / Opera 15 extensions.
JavaScript HTML CSS Shell
Latest commit 7427460 Jan 6, 2017 @Rob--W Strip "case:" from in-file search
It was out-of-sync with implementation in search-worker.js :(

Chrome extension source viewer (CRX Viewer)

View the source code of any Chrome extension in the Chrome Web store without installing it.

Also available for Opera and Opera's add-on gallery.

And also available for Firefox and (WebExtensions and other Firefox addon types).

Online demo (select a .crx / .nex / .zip / .xpi from your disk or a URL to try out the viewer):


This Chrome extension adds a button to right of the omnibox when a CRX file has been detected. By default, this is only enabled on the Chrome Web Store. Upon clicking the button, two actions become available:

  • Download extension as zip file
  • View source

The "View source" option opens a new tab with a simple viewer, with the following features:

  • Download-as-zip and download-as-crx at the upper-right corner.
  • List of file names, and the option to filter files with a regular expression.
  • Find files containing a string, or with content matching a regular expression.
  • Quickly jump between search results, or from/to a specific line.
  • Automatic beautification (formatting) of code
  • Syntax highlighting
  • Image preview
  • View content of embedded zip files.
  • Download Chrome Web Store extensions for a different platform (e.g. Chrome OS or NaCl).
  • View the contents of any URL or zip file.

As mentioned before, this extension activates on the Chrome Web Store by default. It's also possible to view the source code of Chrome, Opera 15+ and Firefox extensions that are hosted elsewhere. Further, there is an option to show a contextmenu entry on links whose target is a Chromium extension. Both features can be toggled at the options page.

The "View source for all extensions" only shows a button when it detects the download of an extension. This detection is implemented through MIME-type sniffing using the declarativeWebRequest API, which is only available to Chromium beta/dev users (though it should soon be available to the general public).

The Firefox addon is implemented as a WebExtension, which is recent technology. See firefox-stuff/ for compatibility notes.


(c) 2013 - 2016 Rob Wu (