Start Chrome with a temp profile & with preinstalled extension

Start Chrome with a temp profile

All Chrome Incognito windows share the same profiles, which make it harder when you need to debug a web application using  more then 2-3 accounts on the time. Using this script i create a temp profile folder and start chrome pointing to it. I also had to do a small change to the default Chrome installation to auto-install the AdBlock extension.

Preinstall extension

Edit the file –

I also removed all the default Google Apps, and replaced it content with

Download Chrome CRX file

As for how to download the CRX file, a short Goggle search gave me this answer (which don’t work for me any more — Updated 2014-12-17),

Some thing else you can do is to install the extension from Goggle App Store, and then in the extension page > Enable “Developer mode” > And use “Pack Extension”, which will create the CRX file for you.

Resources

  • http://www.chromium.org/administrators/pre-installed-extensions
  • http://peter.sh/experiments/chromium-command-line-switches/
  • http://stackoverflow.com/questions/7184793/how-to-download-a-crx-file-from-the-chrome-web-store-for-a-given-id
  • http://www.madhur.co.in/Reverse%20Engineering/Chrome/2011/06/03/reverseengineerchrome.html

Related Post

You may also like...

2 Responses

  1. Kamil says:

    You were the only person in whole internet to explain how to start Chrome with a preinstalled extension, thanks a lot!

    • Rabin says:

      glad I was able to help 🙂
      please not that you need a internet connection to download the extension you like to install, if you like it to work offline, you will need to install the extension and then copy the files (crx).

Leave a Reply

Your email address will not be published. Required fields are marked *