Skip to content

Instantly share code, notes, and snippets.

@haccer
Created September 8, 2018 23:51
Show Gist options
  • Save haccer/e47e5b59508f5ce3f481825b997495e7 to your computer and use it in GitHub Desktop.
Save haccer/e47e5b59508f5ce3f481825b997495e7 to your computer and use it in GitHub Desktop.
Download Chrome Extension Source Code
#!/bin/bash
# ./chromeExtDL.sh <extension id> <path to save location>
curl -s -L -o "/tmp/$1.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$1%26uc"
unzip -d $2 /tmp/$1.zip
rm /tmp/$1.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment