Last active
April 17, 2020 19:16
-
-
Save kitce/8a292dce3e822650d577af2834f1d060 to your computer and use it in GitHub Desktop.
Chrome extension unpacker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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