Chrome on Linux – How to Install Userscripts

chromedrag and dropfile-manager

Help! The only way that Chrome allows userscripts to be installed now is by downloading the file to my local system then dragging and dropping it into the extension manager interface. However when I try to drag it over, nothing happens!

I've tried using the file managers in both Gnome and KDE environments, neither one works.

Best Answer

If you've just downloaded the user script and its name is appearing in the bottom bar, open the Extensions page (Menu > Tools > Extensions, chrome://chrome/extensions/), then drag-and-drop from the download bar to the middle of the Extensions page. (Thanks to balpha for this method.)

If you've got the script on your system somewhere, you can use dragbox to make it available for drag-and-drop:

dragbox foo.user.js

Drag the file into Chrome's extensions page.

Alternatively, you can allow extensions from other websites through a custom ExtensionInstallSources policy, to be set in /etc/opt/chrome/policies. There's a bug with respect to userscripts as of Chrome 21, though. Another method is to pass the --enable-easy-off-store-extension-install option when you start Chrome. See How to install a private user script in Chrome 21+? for more information.