How to download all files from Chrome Extensions e

2020-03-30 04:50发布

问题:

I would like to download this examples. They are shown using ViewVC (which I believe is related to subversion) and it seems that there is no easy way of downloading from there, according to this Stackoverflow question (but the answers are from 2011).

Is there any way to easily access those files? I don't mind command line tools.

Thanks.

回答1:

Every extension example in the source code is available as a zip file as well, directly linked at https://developer.chrome.com/extensions/samples.

If you compare the paths, you'll surely notice a pattern:

  • trunk/src/chrome/common/extensions/docs/examples/api/tabs/inspector
    https://developer.chrome.com/extensions/examples/api/tabs/inspector.zip

  • trunk/src/chrome/common/extensions/docs/examples/api/tabs/pin
    https://developer.chrome.com/extensions/examples/api/tabs/pin.zip

  • trunk/src/chrome/common/extensions/docs/examples/api/tabs/screenshot
    https://developer.chrome.com/extensions/examples/api/tabs/screenshot.zip