Command-line shell script to download a CRX (chrome extension) for offline installation.
- available for both Windows cmd and Linux bash shell
- no installation
- assumes that a
wget
binary can be found in PATH
- assumes that a
crxdl "ID" ["output-path"]
- "ID"
- the unique ID of a chrome extension
- "output-path"
- the optional filepath where the CRX is saved
- can either be:
- an absolute path
- a filename that is saved in the working directory
- default value:
- saves file in the working directory
- filename is: "$ID.crx"
To download the CRX: "uBlock Origin"
- URL of extension:
- ID of extension (obtained from its URL):
- cjpalhdlnbpafiamejdnhcphjbkeiagm
- command to save extension using default output path:
crxdl "cjpalhdlnbpafiamejdnhcphjbkeiagm"
- saved to ⇒
./cjpalhdlnbpafiamejdnhcphjbkeiagm.crx
- saved to ⇒
- command to save extension to a non-default filename in the working directory:
crxdl "cjpalhdlnbpafiamejdnhcphjbkeiagm" "uBlock.crx"
- saved to ⇒
./uBlock.crx
- saved to ⇒
- command to save extension to a non-default filepath:
crxdl "cjpalhdlnbpafiamejdnhcphjbkeiagm" "/save/to/path/uBlock.crx"
- saved to ⇒
/save/to/path/uBlock.crx
- saved to ⇒
- open the Extensions page
- from the address bar:
- open: chrome://extensions/
- from the navigation menu:
- click: the Settings "hamburger" icon
- select: "More tools" > "Extensions"
- from the address bar:
- drag & drop the saved .crx file onto the Extensions page
- follow the prompts:
- click: "Add extension"
- Rob Wu
- StackOverflow answer
- explains how to directly download CRX from Google
- crxviewer
- commit that adds platform-specific querystring parameters
- StackOverflow answer
- Jiri Pospisil
- copyright: Warren Bank
- license: GPL-2.0