How to download a CRX file from the Chrome web store for a given ID?

前端 未结 10 2163
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 15:36

I\'d like to download the .crx file of an extension from webstore, I use fiddler to analyze the network request when I install an extension from webstore and got it.
For

10条回答
  •  死守一世寂寞
    2020-11-29 16:19

    To download the chrome extension from a given id, you could just use like this

    var currentEXTId = 'bjclhonkhgkidmlkghlkiffhoikhaajg';    
    let downloadURL = https://clients2.google.com/service/update2/crx?response=redirect&x=id%3D" + currentEXTId + "%26uc&prodversion=32;
    

    The above one is the download URL for the chrome extension. There is also a chrome extension which could help you for downloading chrome extension as zip or crx file.https://chrome.google.com/webstore/detail/crx-extractordownloader/ajkhmmldknmfjnmeedkbkkojgobmljda

    Also the code for how its done is available in this Github repo

提交回复
热议问题