Downloading multiple files and zip - Chrome extension

前端 未结 2 1749
小蘑菇
小蘑菇 2020-12-31 22:48

Is it possible to download multiple images into the sandbox file system (without the \"save as\" dialog box, or at-max one saveas dialog) ?

after downloading them,

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 22:51

    You can access images as regular parts of some web-pages or download them separately by means of XMLHTTPRequests. After this you can zip them in a single archive using JSZip JavaScript library. The zip can be stored as a file without a "Save As" dialog (try the example on the site). Though I'm not sure why you need the sandbox.

    There exist other JavaScript libraries for zipping, for example, some are mentioned in other SO answer.

提交回复
热议问题