Skip to content

Instantly share code, notes, and snippets.

@acgotaku
Created May 22, 2015 13:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save acgotaku/d35b523a2d2825b03ff7 to your computer and use it in GitHub Desktop.
Save acgotaku/d35b523a2d2825b03ff7 to your computer and use it in GitHub Desktop.
download chrome extension crx file
#!/bin/bash
mkdir -p crx
id=$1
downloadUrl="https://clients2.google.com/service/update2/crx?response=redirect&os=linux&arch=x64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=42.0.2311.152&x=id%3D$id%26installsource%3Dondemand%26lang%3Den-US%26uc"
if [ ! -d "unzipped/$id" ]; then
wget -q "$downloadUrl" -O crx/$id.crx -U "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36"
fi
echo "download success"
@acgotaku
Copy link
Author

使用方法 ./crx.sh ojafklbojgenkohhdgdjeaepnbjffdjf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment