views:

66

answers:

2

I'm developing a JavaScript extension for Chromium and my current workflow is:

  1. Edit file
  2. Uninstall old file
  3. Install new file
  4. Test file

Is there a quicker way of doing this?

I'm using chromium-browser_5.0.375.125 in Ubuntu 10.04.

A: 
  1. Open "Extensions" tab
  2. Enable "Developer mode"
  3. Click "Load unpacked extension..."
  4. Point directory with your extension (manifest.json should be in that dir).

Chrome will try to reload your files automatically now. Also you will have "Reload" button next to extension.

Tomasz Wysocki
This is a **pure** JavaScript extension, there is no `manifest.json`.
Josh
A: 
  1. Load your extension into Chromium
  2. Find your extension's ID:
    1. Go to the extensions page chrome://extensions/
    2. Click + Developer Mode
    3. Scroll down to your extension and look at the ID: field
  3. Browse to ~/.config/chromium/Default/Extensions/extension_id/version/script.js

For a pure JavaScript extension the version number should be 1.0.

Josh