browser addons - How to view source of Google Chrome extensions?

25
2014-05
  • Rook

    I'm interested in some Google Chrome extensions, namely Minimalist for Gmail and Minimalist for Google Reader, but I would like to view their source before I install them.

    1. Is viewing plugin source code possible?
    2. Does someone know what exactly are they accessing? Or is that there more pro forma?

    I don't like that those are somehow able to access my bookmarks, browsing history and Google data as it says in the right bar.

  • Answers
  • Ian C.

    Is viewing plugin source code possible?

    Yes.

    Both Minimalist for Gmail and Minimalist for Google Reader are open source projects with GPLv3 licenses. You can browser their source code trees, download the full source code repositories and more at their respective Google Code home pages:

    Minimalist for Gmail

    Minimalist for Google Reader

    Does someone know what exactly are they accessing? Or is that there more pro forma?

    Slightly tongue-in-cheek: yes, the developers know what they're accessing. Which is really to say, you should ask them in their forums. Or read the source code. I'm sure they'll happily discuss their data access routines with you. Open source software also has lots of open forum discussion around it and that's A Good Thing(tm).

  • Synetech

    Another option is to download the CRX file (right-click the Install button and select Save-As), then open it in a ZIP compatible archiver like 7-Zip.

    The extension should have a manifest file which is essentially just a JavaScript text file. The extension's code itself is also a JavaScript file which you can view.

    Some extensions don't do any work locally and simply pass off the work to an external server to do which of course means you cannot see the code or what happens to your data there. However for simpler extensions, you can see the code and vet it yourself before installing (assuming a decent knowledge of JavaScript of course).

  • Olli

    As georgiecasey comments, the original answer is totally wrong. In short, yes, it's very easy to view source code of Google Chrome extensions, it's just ZIP file with different file extension.

    You can't see source code of plugins, except for open source plugins. That's proprietary information.

    Knowing exactly what those are accessing: that's tricky. You can start with sysinternals tools for Windows, or for example strace for Linux. However, it's not really easy task to do, as there is huge number of system calls.


  • Related Question

    browser - How to uninstall this Google Chrome extension?
  • Lazer

    I have installed Chrome Lock:

    alt text

    However it keeps crashing all the time.

    alt text

    I wanted to uninstall it, but to my surprise, it is not listed in the Chrome Extensions [chrome://extensions/] page.

    What should I do to fix this (remove Chrome Lock)?


  • Related Answers
  • BioXhazard

    If your extensions are not listed, they can be uninstalled by deleting them. This can be done by finding out where your extensions are installed in your computer. You can find these from your Chrome profile or you can search them manually in your Documents and Settings folder.

    http://pcsplace.com/google/how-to-use-google-chrome-extensions-enable-install-remove-uninstall/