码迷,mamicode.com
首页 > 其他好文 > 详细

how-to-view-source-of-chrome-extension

时间:2018-10-02 00:49:52      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:viewer   service   directory   line   pat   file   strong   google   between   

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 that folder up.
Open the Extensions/ subfolder
All your extensions are here, 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

标签:viewer   service   directory   line   pat   file   strong   google   between   

原文地址:https://www.cnblogs.com/johnsonshu/p/9736170.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!