Skip to content

Instantly share code, notes, and snippets.

@kitce
Last active April 17, 2020 19:16
Show Gist options
  • Save kitce/8a292dce3e822650d577af2834f1d060 to your computer and use it in GitHub Desktop.
Save kitce/8a292dce3e822650d577af2834f1d060 to your computer and use it in GitHub Desktop.
Chrome extension unpacker
#!/usr/bin/bash
# Usage: crx-unpack.sh [extension]
#
# Dependencies:
# - crx-dl (https://gist.github.com/kitce/0f3ce27ddfa52b53f7532365235eaf99)
id=$1
crx-dl $1
crx="$id.crx"
zip="$id.zip"
echo "Rename $crx to $zip"
mv $crx $zip
echo "Unzip $zip"
unzip $zip -d $id
echo "Remove $zip"
rm $zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment