Skip to content

Instantly share code, notes, and snippets.

@yang
Created April 19, 2012 08:01
Show Gist options
  • Save yang/2419515 to your computer and use it in GitHub Desktop.
Save yang/2419515 to your computer and use it in GitHub Desktop.
Bookmarklet to 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%28%27https%3A//clients2.google.com/service/update2/crx%3Fresponse%3Dredirect%26x%3Did%253D%27%20%2B%20/webstore%5C/detail%5C/%28%5B%5E%5C/%5D%2B%29/.exec%28window.location.href%29%5B1%5D%20%2B%20%27%2526uc%27%29
@yang
Copy link
Author

yang commented May 5, 2012

@georgiecasey Glad it helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment