Skip to content

Instantly share code, notes, and snippets.

@oumu
Forked from yang/gist:2419515
Created October 29, 2012 14:39
Show Gist options
  • Save oumu/3973906 to your computer and use it in GitHub Desktop.
Save oumu/3973906 to your computer and use it in GitHub Desktop.
#Bookmarklet : download Chrome extension files (CRX files) from Chrome webstore
If you want to access the source code of a Chrome extension, you need to get the .crx file. This bookmarklet downloads the .crx file for the Chrome extension you're viewing. You'll be prompted to install it; before dismissing the dialog, check in your Downloads directory. Then just unzip the .crx (it's a zip file).
javascript:window.open('https://clients2.google.com/service/update2/crx?response=redirect&x=id%3D' + /webstore\/detail\/[^\/]+\/([^\/]+)/.exec(window.location.href)[1] + '%26uc')
javascript:window.open('https://clients2.google.com/service/update2/crx?response=redirect&x=id%253D' + /webstore%5C/detail%5C/(?:%5Cw%7C-)+%5C/(%5B%5E%5C/%5D+)/.exec(window.location.href)%5B1%5D + '%2526uc')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment