Skip to content

Instantly share code, notes, and snippets.

@ninehills
Last active December 16, 2015 18:59
Show Gist options
  • Save ninehills/5481448 to your computer and use it in GitHub Desktop.
Save ninehills/5481448 to your computer and use it in GitHub Desktop.
Dowload crx file from chrome store.
#!/bin/bash
#Usage: sh $0 <app_id>
if [[ $? != 1 ]];then
echo "Usage: sh $0 <extension_id>" >&2
echo "Output: <extension_id>.crx (zip file)"
exit 1
fi
app_id=$1
wget "https://clients2.google.com/service/update2/crx?response=redirect&x=id%3D${app_id}%26uc" -O ${app_id}.crx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment