You are not logged in.

#1 2014-03-22 03:19:04

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Install chrome .crx extension without drag and drop

I don't have any sort of graphical file manager installed. How can I install a chrome *.crx extension without dragging and dropping it into chrome://extensions?

Alternatively, is there some kind of small CLI utility that I can pass a file and it will 'attach it' to the mouse as if I was dragging and dropping? For example, I type "$ drag-drop my-extension.crx" and then I could click into chrome and it would be like I dropped the file in there?

Last edited by EvanPurkhiser (2014-03-22 03:19:23)

Offline

#2 2014-03-22 04:47:55

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: Install chrome .crx extension without drag and drop

You can do it this way: https://developer.chrome.com/extensions … extensions

nano ${HOME}/Library/Application Support/Google/Chrome/External Extensions/{$EXTENSION_ID}.json

content:

 {
    "external_crx": "${EXTENSION_CRX_FILE}",
    "external_version": "${EXTENSION_VERSION}"
 }

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2014-03-22 05:02:18

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Install chrome .crx extension without drag and drop

EvanPurkhiser wrote:

Alternatively, is there some kind of small CLI utility that I can pass a file and it will 'attach it' to the mouse as if I was dragging and dropping? For example, I type "$ drag-drop my-extension.crx" and then I could click into chrome and it would be like I dropped the file in there?

You can simply use Chrome to browse your files.

try

file:///

in the location bar

Last edited by x33a (2014-03-22 05:02:40)

Offline

#4 2014-03-22 05:08:51

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: Install chrome .crx extension without drag and drop

@x33a, That was actually the first thing I tried. But chrome complains and gives the error "Apps, extensions, and user scripts cannot be added from this website".

Here's a simple solution:

  1. Exit all chrome instances

  2. Run this command

    chromium --enable-easy-off-store-extension-install my-extension.crx

It would still be nice if I could 'fake' a drag and drop event.

Offline

Board footer

Powered by FluxBB