Https://gist.github.com/paulirish/78d6c1406c901be02c2d
Option 1: Command-Line download extension as zip and extract
Extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # Change this ID
Curl-l-O "$extension _id.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$extension_id%26uc "
unzip-d "$extension _id-source" "$extension _id.zip"
Thx to Crxviewer for the magic download URL.
Option 2: Use the CRX Viewer extension
The Chrome Extension Source Viewer is open source (GitHub repo) and makes this super easy.
Option 3: View source of locally installed extension
Find your Chrome local profile directory. Open Chrome://version/and Find the "Profile Path: ' field. Open the folder up.
Open the Extensions/subfolder
All your extensions is here and with typically readable source.
Mapping between locally installed extension IDs and names
On About:extensions, turn on Developer Mode and you'll see IDs under each entry
Inside the Extensions/folders, the Manifest.json has a readable name field
Image
How-to-view-source-of-chrome-extension