Today I was updating one of my userscripts, but when I went to test my changes in Chrome, I saw the following warning:
The learn more link took me to this page:
Following the directions for OSX, I tried adding the ExtensionInstallSources preference via the command line:
defaults write com.google.Chrome ExtensionInstallSources -array "https://github.com/skratchdot/*"
defaults write com.google.Chrome.canary ExtensionInstallSources -array "https://github.com/skratchdot/*"
I restarted Chrome, and still could not install my userscript.
After reading through this bug:
I found the --enable-easy-off-store-extension-install switch. By using that, I was able to start Chrome from the command line to install my userscript.
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-easy-off-store-extension-install
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --enable-easy-off-store-extension-install
It would be nice if the "Tools"->"Extensions" page (aka chrome://chrome/extensions/) had a list of whitelist/blacklist URLs that you could edit. That page allows you to enter "Developer Mode", so it makes sense to have a few more options there.
This workaround exists as well:
- Download the user script.
- Open chrome://chrome/extensions/.
- Drag and drop the user script file on the page you opened in step 2.