chrome extension to access content of downloaded files
问题 I'm working on a Chrome extension and I'd like to have the extension: Click on a link to initiate a file download Once the download is complete, open and read the contents of the downloaded file Do something with the contents of the file in JavaScript I see that the chrome.downloads API allows me to initiate the download and open the file, but is it possible for me to read the contents of the file (without writing native code)? 回答1: I'm copying the answer I gave here. You just need to add a