Skip to content

Instantly share code, notes, and snippets.

@chew-z
Created March 3, 2017 08:14
Show Gist options
  • Save chew-z/af76ff13af5e33136e115b107e3abb54 to your computer and use it in GitHub Desktop.
Save chew-z/af76ff13af5e33136e115b107e3abb54 to your computer and use it in GitHub Desktop.
Grab Chrome extension form Web Store
#!/bin/env zsh
mkdir -p chrome-crx
id=$1
downloadUrl="https://clients2.google.com/service/update2/crx?response=redirect&prodversion=56.0&x=id%3D$id%26installsource%3Dondemand%26lang%3Den-US%26uc"
if [ ! -f "chrome-crx/$id.crx" ]; then
curl -Lso "chrome-crx/$id.crx" "$downloadUrl"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment